Raised This Month: $89 Target: $400
 22% 

Player suffers damage when touching another player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mikehawk
Junior Member
Join Date: Feb 2011
Old 08-06-2019 , 20:35   Player suffers damage when touching another player
Reply With Quote #1

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.
mikehawk is offline
PC Gamer
Senior Member
Join Date: Mar 2014
Old 08-06-2019 , 21:56   Re: Player suffers damage when touching another player
Reply With Quote #2

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.
PC Gamer is offline
Whai
Senior Member
Join Date: Jul 2018
Location: in the daze
Old 08-07-2019 , 14:14   Re: Player suffers damage when touching another player
Reply With Quote #3

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
__________________
My GitHub repo. (Plugins are often up to date on GitHub than here)
My plugins
Whai is offline
mikehawk
Junior Member
Join Date: Feb 2011
Old 08-07-2019 , 20:18   Re: Player suffers damage when touching another player
Reply With Quote #4

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.
mikehawk is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:19.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode