Change weapon fire recoil time

Discussions about Coding and Scripting
Post Reply
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Change weapon fire recoil time

Post by iloveut99 »

Hi,

It's possible to change a weapon fire recoil time with just the mutators functions? Or do I need to subclass the weapon?
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Change weapon fire recoil time

Post by JackGriffin »

Do you mean the actual refire time or the animation time?
So long, and thanks for all the fish
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: Change weapon fire recoil time

Post by iloveut99 »

refire time.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Change weapon fire recoil time

Post by JackGriffin »

OK here's the problem with that: You might ruin the weapon fire anims unless you also deal with that code too. Some weapons have PlayAnim built into the firing code but some don't. You'll likely end up subclassing depending on the desired changes, since your local view will see the desired change in fire rate but your replicated animations that other players see might not be correct.
Drop me an email if you don't want it public and I'll help you sort through it.
So long, and thanks for all the fish
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: Change weapon fire recoil time

Post by iloveut99 »

The problem is that I can't subclass the weapon that I want. :P

Well I tried but seems zp packages have headers corrupted/obfuscated or something like that and don't allow me to use them in the editpackages to subclass the weapon. That's why I asked if I can't do it with just mutators functions.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Change weapon fire recoil time

Post by JackGriffin »

Yep the zp code is stripped. Still what were you trying to subclass, perhaps we can work around it?
So long, and thanks for all the fish
iloveut99
Skilled
Posts: 231
Joined: Mon Aug 16, 2010 10:25 pm

Re: Change weapon fire recoil time

Post by iloveut99 »

I sent you a pm. :wink:
Post Reply