Jump to content

Photo

Question about Witcher 3 Modding

modding question help coding c/c++ scripting

2 replies to this topic

#1
kastion2000

kastion2000

    Stranger

  • Members
  • Pip
  • 4 posts

Is there a way to change how many bolts can be fired from the crossbow before reloading (Like I want to change from 1 or 2 to 5)

 

Can it be done by editing vanilla scripts or can it be changed in the Combat Skills script which I use? ( https://www.nexusmod...cher3/mods/5312)

 

I've seen mods for fully auto or infinite shots but I wanted something a little more grounded (And similar to the repeating crossbow Guts from Berserk carries)

 

 

s1wl7mN.png

 

Would greatly appreciate any help with this! Thanks!



#2
kastion2000

kastion2000

    Stranger

  • Members
  • Pip
  • 4 posts

There is this mod here for crossbows https://www.nexusmod...tab=description

 

But it is overkill and has too much content I don't particularly want. All I want to do is change crossbow clip size from 2 to 5...



#3
kastion2000

kastion2000

    Stranger

  • Members
  • Pip
  • 4 posts

I managed to figure it out if anyone is interested.

 

In:

C:\Program Files (x86)\GOG Galaxy\Games\The Witcher 3 Wild Hunt GOTY\content\content0\scripts\game\gameplay\items\rangedWeapons

At line 668:

class Crossbow extends RangedWeapon
{
	protected	var shotCount				: int;
	protected	var shotCountLimit			: int;
	
	default shotCountLimit = 5; // <--------------------
	default shotCount = 0; 

That is all that is needed to make a 5 bolt clip / semi-auto crossbow.  :geek:





Reply to this topic



  



Also tagged with one or more of these keywords: modding, question, help, coding, c/c++, scripting

IPB skins by Skinbox
Page loaded in: 1.102 seconds