[Any] Mirror Damage [12.01.2013]
2 Attachment(s)
~ Mirror Damage UPDATED 12.01.13
Prevent friendlyfire damage, and returns it back to attacker. Installation: put MirrorDamage.smx into addons/sourcemod/plugins/ Cvars: sm_mirrordamage_version - Version of plugin sm_mirrordamage_multiplier - Amount of damage to inflict to attacker (Def: 0.7) sm_mirrordamage_slap - Slap attacker?! or just subtraction health (Def: 0) sm_mirrordamage_annonce - Type in chat about friendlyfire?! (Def: 0) Example: "NEATEK attacked a teammate" Requiments: SDKHooks Counter-Strike: Source (works fine) Counter-Strike: Global offensive (must works) Team Fortrees 2 (must works) Changelog: 1.1rc: // not tested
|
Re: [Any] Mirror Damage (sdkhooks)
There is another mirror damage plugin. Though that one has issues where the victim could get killed as well as the attacker.
Is that corrected in this one? What are the differences? |
Re: [Any] Mirror Damage (sdkhooks)
Quote:
Quote:
|
Re: [Any] Mirror Damage (sdkhooks)
Great. Would you mind adding an sm_mirrordamage <client> command then? :3
|
Re: [Any] Mirror Damage (sdkhooks)
Quote:
|
Re: [Any] Mirror Damage (sdkhooks)
Quote:
Nice plugin nonetheless! |
Re: [Any] Mirror Damage (sdkhooks)
Could be good for anti tk. Anyway you could fix this bit.
PHP Code:
PHP Code:
|
Re: [Any] Mirror Damage (sdkhooks)
Quote:
PHP Code:
|
Re: [Any] Mirror Damage (sdkhooks)
1. SDKHooks is better, since the victim won't die as well. I like ecca's conditional statement format better, but since it's the same logic it doesn't really make a difference.
2. However, the attacker might not necessarily be a player, so before you check IsClientInGame(attacker), make sure attacker <= MaxClients. 3. Aside from using SDKHooks to avoid killing the victim, this plugin isn't significantly different from MadHamster's Reflect Team Damage plugin. I would recommend adding some extra features, such as convars that can slap or give verbal warnings to team attackers. 4. Also, a player can damage themself, such as with a nade. As it stands, the plugin will double the damage a player inflicts on themself, so make sure that attacker != victim. 5. For compatibility with CS:GO, you cannot use ForcePlayerSuicide directly in the OnTakeDamage function, or else it will cause srcds.exe to crash. Instead, you need to create a timer, such as: Code:
if(mirrordamage < 0) |
Re: [Any] Mirror Damage (sdkhooks)
Sheepdude, oh, thank you, it very helpful! :)
I will take your advice note. |
Re: [Any] Mirror Damage (sdkhooks)
So say if you had the mod "tripmines" and a teamate blows up a tripmine beside you. Will it only kill the person to who blew the tripmine up?
|
Re: [Any] Mirror Damage (sdkhooks)
it depends on who the owner of that mine is. If the damage isn't owned by the player who activated it, the player won't be punished for it.
|
Re: [Any] Mirror Damage (sdkhooks)
Sheepdude,
can you check it and give me some tips? // updated 12.01. (1.1rc) |
Re: [Any] Mirror Damage [12.01.2013]
I think it would be a good idea to add a new cvar so that when you shoot a teammate to harm him and you too.
Right now only cause you harm yourself. |
Re: Re: [Any] Mirror Damage (sdkhooks)
Quote:
|
Re: [Any] Mirror Damage [12.01.2013]
Hello,
Work's for L4D2 ? |
Re: [Any] Mirror Damage [12.01.2013]
headshot = instant kill?
|
Re: [Any] Mirror Damage [12.01.2013]
works with cs:go ? :)
|
Re: [Any] Mirror Damage [12.01.2013]
Quote:
|
Re: [Any] Mirror Damage [12.01.2013]
You could do something like, scale the damage by hit, or add a doubling w/forgiveness model quite easily...
I commissioned something like this for someone, just set a base damage, and store time of last ff hit and number of hits in an array, and if last time > threshold, increment the count, hit them with multiplier.. So you can do like 10 20 40 Then if they stop for say 30s.. It starts over. At 10. Also, give a warning in the hook ith like hinttext on the first multiplier. |
[Any] Mirror Damage [12.01.2013]
Could you add a random option?
So say a attacker has a 50/50% chance of either killing the player or getting killed. |
Re: [Any] Mirror Damage [12.01.2013]
Quote:
nice idea. and hinttext will be great) Quote:
|
Re: [Any] Mirror Damage [12.01.2013]
Quote:
|
Re: [Any] Mirror Damage [12.01.2013]
Is this plugin still working?
Does it exclude bots? Need something like this for Insurgency 2014 |
Re: [Any] Mirror Damage [12.01.2013]
https://forums.alliedmods.net/showthread.php?t=237011
This can do the same as this plugin. If u need it to skip processing for bots leave a request and ill do it tonight for you |
Re: [Any] Mirror Damage [12.01.2013]
For some reason, when I use this it enables friendly fire. Even though when I type in "FF" in-game it tells me friendly fire is disabled? Any ideas? Thanks.
edit: Used diff plug in. This one is messed up I think. |
Re: [Any] Mirror Damage [12.01.2013]
Is it possible to change so that teamdamage to the head only give back damage, not kill the shooter right away?
|
Re: [Any] Mirror Damage [12.01.2013]
Hi,
I know this a very old thread - but I'm hoping someone out there may take an interest and may help. the plugin works for L4D1 apart from the cfg is not created - so i have to add the settings to the source code. But I don't know enough about code to add a few more features. the three features that would really enhance the plugin: 1. Instead of being killed - the player to be incapped. for L4D1 2. Also the the attackers ID to be printed to screen. 3. Also a CVAR for setting the amount of damage the attacker reflected damage vs the attacked player damage - EG: set attacker to recieve 10% damage and Attacked 1% or whatevers required. Even even if 1 & 2 of the requests get made ... that would be great ... as the third would be much more complex. Regards TiTz |
All times are GMT -4. The time now is 20:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.