Chargeable Fire
I am making a weapon which can fire nades.
I want to make it while holding the primary attack button, the weapon charges in order for the nade to gain more velocity, like the sticky gun in TF2. |
Re: Chargeable Fire
And what is your question?
|
Re: Chargeable Fire
How can I make that chargeable fire.
|
Re: Chargeable Fire
hook FM_cmdstart and FM_cmdend, check if primary attack command is started and create task to increace a global variable until the FM_cmdend is triggered, create the nade in FM_cmdend forward and calculate its velocity some way using the global variable you increaced with task
|
Re: Chargeable Fire
Quote:
|
Re: Chargeable Fire
Code:
|
| All times are GMT -4. The time now is 08:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.