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

Damage & Death Effect v1.3.3 Updated : 1/14/2010


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-20-2009 , 21:26   Damage & Death Effect v1.3.3 Updated : 1/14/2010
Reply With Quote #1

Description:

Just look at the plguin name, this is simple and easy plugin

It let your game more realistic

Effect :

Damage : If you are hit, your screen will also shake and go on a weird angle & flash red for a second.

Death : Your screen will trun black(control by cvar) when you are killed

Required Modules:

hamsandwich

CVAR:

PHP Code:
amx_damage_effect_on "1" on the damage effect
amx_killed_effect_on 
"1" on the death effect
death_color_r 
"0" Death colors
death_color_g 
"0" same
death_color_b 
"0" same
damage_num 
"60" number of damage enable the effect 
*if there are any bugs, plesae report.

Change log:

Quote:
1.0 : Release
1.1 : fixed actual cvar values
1.2 : fixed player get -1 damage, and he got shake
1.3 : removed useless code
1.3.1 : fixed can not show screen fade
1.3.2 : Changed the MSG_ONE to MSG_ONE_UNRELIABLE
1.3.3 : Add "damage_num" cvar
Attached Files
File Type: sma Get Plugin or Get Source (Damage_Killed_effect.sma - 12521 views - 2.2 KB)
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death

Last edited by YKH =]; 01-14-2010 at 03:28.
YKH =] is offline
mando127
Veteran Member
Join Date: Dec 2006
Location: virginia
Old 02-20-2009 , 21:29   Re: Damage & Death Effect v1.0
Reply With Quote #2

good job i will test it in a bit.
__________________
mando127 is offline
Send a message via Skype™ to mando127
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-20-2009 , 23:33   Re: Damage & Death Effect v1.0
Reply With Quote #3

You are using write_byte on cvar pointers and not actual cvar values.

Last edited by fysiks; 02-21-2009 at 00:51. Reason: simplification
fysiks is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-21-2009 , 06:22   Re: Damage & Death Effect v1.0
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
You are using write_byte on cvar pointers and not actual cvar values.
Updated v1.1

Looks it if there is any bugs?
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 02-21-2009 , 06:24   Re: Damage & Death Effect v1.1
Reply With Quote #5

add an damage limit, kinda weird when you get -1 damage, and you got shake o_O
__________________
xPaw is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-21-2009 , 06:44   Re: Damage & Death Effect v1.1
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
add an damage limit, kinda weird when you get -1 damage, and you got shake o_O
Thanks for report bug

watch the newest version that is it fixed.
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
pro_on_0
Member
Join Date: Nov 2008
Old 02-21-2009 , 07:00   Re: Damage & Death Effect v1.2 Updated
Reply With Quote #7

Nice work.Make the game more realistic.

Sorry for my Poor English.
pro_on_0 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-21-2009 , 20:14   Re: Damage & Death Effect v1.2 Updated
Reply With Quote #8

Some suggestions :

fw_Damage() : is_user_connected should be useless here ; try to avoir to return something ; Why HAM_SUPERCEDE ? ; Use MSG_ONE_UNRELIABLE ; Something like would be more appropriate :

Code:
public fw_Damage  ( victim, attacker, Float:damage ) {     if ( victim == attacker && damage > 0 && get_pcvar_num( cvar_on ) )     {         //     } }

fw_Killed() : Make a define with 0x0001 : #define FFADE_OUT 0x0001
Arkshine is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-22-2009 , 01:11   Re: Damage & Death Effect v1.3 Updated
Reply With Quote #9

Quote:
Originally Posted by arkshine View Post
Some suggestions :

fw_Damage() : is_user_connected should be useless here ; try to avoir to return something ; Why HAM_SUPERCEDE ? ; Use MSG_ONE_UNRELIABLE ; Something like would be more appropriate :

Code:
public fw_Damage ( victim, attacker, Float:damage ) { if ( victim == attacker && damage > 0 && get_pcvar_num( cvar_on ) ) { // } }


fw_Killed() : Make a define with 0x0001 : #define FFADE_OUT 0x0001
Thanks

Check 1.3 that find something i missed

Anyway, i would like to ask :

What do you mean "Use MSG_ONE_UNRELIABLE"?
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] is offline
YKH =]
Senior Member
Join Date: Sep 2008
Location: Hong Kong
Old 02-22-2009 , 04:52   Re: Damage & Death Effect v1.3.1 Updated
Reply With Quote #10

1.3.1 : fixed can not show screen fade
__________________
Approved Plugins

[ZP] Effect Plugins :
Damage Effect
Real Death
YKH =] 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 04:26.


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