AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Player suffers damage when touching another player (https://forums.alliedmods.net/showthread.php?t=317969)

mikehawk 08-06-2019 20:35

Player suffers damage when touching another player
 
Is it possible to have a plugin inflict damage on players when they come in contact with another player (bot)?


Looked high and low and can't find a plugin like this.

PC Gamer 08-06-2019 21:56

Re: Player suffers damage when touching another player
 
You might try the [TF2] Roll The Dice Revamped (RTD) plugin by the talented Phil25.

Link: https://forums.alliedmods.net/showthread.php?t=278579

That plugin has a Perk called 'Toxic' that does damage to enemy players that you are near. Once you install the plugin you can try it out for 60 seconds with this command: !forcertd @me toxic 60

Toxic Perk description: Hurts enemy players in the specified radius, interval and with given damage.

Whai 08-07-2019 14:14

Re: Player suffers damage when touching another player
 
That’s not what he wants, he wants a plugin when players touch each other getting damaged.

So we need to hook on touch and doing SDKHook_Damage function

mikehawk 08-07-2019 20:18

Re: Player suffers damage when touching another player
 
Thats exactly what I was looking for. Has anybody ever done it?

Basically I have a zombie mod for Insurgency but the way the bot behavior is coded the bots (zombies) will come up to you but not attack. I thought maybe damage could be given to the player when touching the zombie bot. Otherwise the players just stand in the mob and blast everything.


All times are GMT -4. The time now is 00:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.