AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Damage & Death Effect v1.3.3 Updated : 1/14/2010 (https://forums.alliedmods.net/showthread.php?t=86110)

YKH =] 02-20-2009 21:26

Damage & Death Effect v1.3.3 Updated : 1/14/2010
 
3 Attachment(s)
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

mando127 02-20-2009 21:29

Re: Damage & Death Effect v1.0
 
good job i will test it in a bit.

fysiks 02-20-2009 23:33

Re: Damage & Death Effect v1.0
 
You are using write_byte on cvar pointers and not actual cvar values.

YKH =] 02-21-2009 06:22

Re: Damage & Death Effect v1.0
 
Quote:

Originally Posted by fysiks (Post 765732)
You are using write_byte on cvar pointers and not actual cvar values.

Updated v1.1

Looks it if there is any bugs?

xPaw 02-21-2009 06:24

Re: Damage & Death Effect v1.1
 
add an damage limit, kinda weird when you get -1 damage, and you got shake o_O

YKH =] 02-21-2009 06:44

Re: Damage & Death Effect v1.1
 
Quote:

Originally Posted by xPaw (Post 765836)
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.

pro_on_0 02-21-2009 07:00

Re: Damage & Death Effect v1.2 Updated
 
Nice work.Make the game more realistic.

Sorry for my Poor English.

Arkshine 02-21-2009 20:14

Re: Damage & Death Effect v1.2 Updated
 
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

YKH =] 02-22-2009 01:11

Re: Damage & Death Effect v1.3 Updated
 
Quote:

Originally Posted by arkshine (Post 766282)
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"?

YKH =] 02-22-2009 04:52

Re: Damage & Death Effect v1.3.1 Updated
 
1.3.1 : fixed can not show screen fade


All times are GMT -4. The time now is 15:37.

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