Player Shields (Help)
Hello, i decided to make freak fortress 2 server and i'm adding little new things to it, so i was wondering if its possible to add more shields to the demo/sniper so they last longer, like 3 boss hits, by editing the plugin. Also i'm a newbie at this but i kind of know how it works, help is appreciated, thanks :3
|
Re: Player Shields (Help)
ok :3
|
Re: Player Shields (Help)
Yeah, it's possible
|
Re: Player Shields (Help)
You'll have to create a new global array, something like new shieldsLeft[MAXPLAYERS + 1]. Then somewhere reasonable (CheckItems, MakeNotBoss, something like that) assign however many shield hits you want to everyone.
Then change this bit of code to the following: Code:
And finally, make sure to reset shieldsLeft to 0 at the end of each round (or beginning). |
Re: Player Shields (Help)
Thank you so much!, i got it to work right now and added the backstab sound effect to every hit, also thanks for the fast answer :3
|
All times are GMT -4. The time now is 05:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.