Raised This Month: $51 Target: $400
 12% 

Self Nade Dmg Percent


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related       
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-27-2013 , 21:05   Self Nade Dmg Percent
Reply With Quote #1

Self Nade Dmg Percent
v1.0.2
by Blizzard_87


ThreadStart
Description
-----------
This plugin changes the percent of self damage you recieve from a HE Grenade
To either recieve no dmg( 0 ), half dmg( 50 ) or normal dmg( 100 ) changable via Cvar.
Handy for when you throw a nade and it bounces back on you.

Cvars
-----
amx_sndp_percent
"0" - 0% Damage
"50" - 50% Damage etc
"100" - 100% Damage etc
Credits
-------
Jhob94 - change cvar to percentage instead of locked amount.
ConnorMcLeod
  • better checks ( nade specific dmg )
  • take away cvar version
  • IsPlayer vaild check not needed.

ChangeLog
---------
May 29/05/2013 09:06AM
- v1.0.2 -
[ ADDED ] HE Nade Specific Check
[ REMOVED ] version cvar
[ REMOVED ] attacker being equal to player index
May 28/05/2013 11:49AM
- v1.0.1 -
[ EDITED ] changed cvar from locked modes to percent
May 28/05/2013
- v1.0.0 -
Inital Release
ThreadEnd
.
Attached Files
File Type: sma Get Plugin or Get Source (sndp.sma - 1294 views - 2.7 KB)
__________________

Last edited by Blizzard_87; 04-25-2015 at 13:11. Reason: Update v1.0.2
Blizzard_87 is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 05-27-2013 , 21:10   Re: Self Nade Dmg Mode
Reply With Quote #2

that looks like nade modes stuff.
Just make cvar for decide how many damage want, is much better
__________________

Last edited by Jhob94; 05-27-2013 at 22:08. Reason: Removed code example, already updated...
Jhob94 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 05-27-2013 , 23:38   Re: Self Nade Dmg Percent
Reply With Quote #3

You can also clamp it 0-1. And use it as a multiplier. 0.25 0.37. And just get the flat and multiply
Doc-Holiday is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 05-28-2013 , 00:43   Re: Self Nade Dmg Percent
Reply With Quote #4

Simple but useful.

Quote:
Originally Posted by Doc-Holiday View Post
You can also clamp it 0-1. And use it as a multiplier. 0.25 0.37. And just get the flat and multiply
Ya, i also think it would be more better.
__________________
youtube:
@holla16
11922911 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-28-2013 , 00:52   Re: Self Nade Dmg Percent
Reply With Quote #5

I don't think a version cvar is needed for such a feature.
You should check for specific nade damage, attacker being equal to player index is not reliable.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-28-2013 , 01:13   Re: Self Nade Dmg Percent
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
I don't think a version cvar is needed for such a feature.
You should check for specific nade damage, attacker being equal to player index is not reliable.
Ok i'll take out the version cvar. And attacker being equal

As for specific Nade damage not sure.
__________________
Blizzard_87 is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-28-2013 , 01:27   Re: Self Nade Dmg Percent
Reply With Quote #7

it would be better to add to make no damage on other teammates...
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-28-2013 , 02:01   Re: Self Nade Dmg Percent
Reply With Quote #8

Quote:
Originally Posted by oxygen935 View Post
it would be better to add to make no damage on other teammates...
Then turn friendly fire off ?
__________________
Blizzard_87 is offline
11922911
Senior Member
Join Date: Dec 2011
Location: Yuen Long Country
Old 05-28-2013 , 02:03   Re: Self Nade Dmg Percent
Reply With Quote #9

Quote:
Originally Posted by Blizzard_87 View Post
Then turn friendly fire off ?
I think so.
__________________
youtube:
@holla16
11922911 is offline
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-28-2013 , 02:06   Re: Self Nade Dmg Percent
Reply With Quote #10

i tried it on my server(i have ff=off) and the hegrenades make damage on teammates
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Reply



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 01:43.


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