AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   VSH / Freak Fortress (https://forums.alliedmods.net/forumdisplay.php?f=154)
-   -   FF2 Player Shields (Help) (https://forums.alliedmods.net/showthread.php?t=285862)

Tetradox 08-02-2016 00:40

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

zyox123cc 08-02-2016 03:32

Re: Player Shields (Help)
 
ok :3

93SHADoW 08-02-2016 11:36

Re: Player Shields (Help)
 
Yeah, it's possible

Wliu 08-02-2016 12:26

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:
if(shield[client] && shieldsLeft[client] && damage) {     shieldsLeft[client]--;     if(!shieldsLeft[client])     {         RemoveShield(client, attacker, position);     }     return Plugin_Handled; }

And finally, make sure to reset shieldsLeft to 0 at the end of each round (or beginning).

Tetradox 08-02-2016 19:25

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.