[Half-Life AMXX] / grab_plus.sma Repository:
ViewVC logotype

Diff of /grab_plus.sma

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31, Sat Nov 24 02:27:46 2007 UTC revision 39, Mon Feb 18 12:47:15 2008 UTC
# Line 1  Line 1 
1  /*  /*
2  Grab+ v1.2.3  Grab+ v1.2.4
3  Copyright (C) 2007 Ian (Juan) Cammarata  Copyright (C) 2007 Ian (Juan) Cammarata
4    
5  This program is free software: you can redistribute it and/or modify  This program is free software: you can redistribute it and/or modify
# Line 102  Line 102 
102  Change Log:  Change Log:
103  Key (+ added | - removed | c changed | f fixed)  Key (+ added | - removed | c changed | f fixed)
104    
105    v1.2.4 (Feb 18, 2007)
106    f: Killing player with choke in some mods bugged out really bad.
107    
108  v1.2.3 (Nov 21, 2007)  v1.2.3 (Nov 21, 2007)
109  c: A few more small optimizations.  c: A few more small optimizations.
110  f: Bloodstream for choke wasn't aligned with player.  f: Bloodstream for choke wasn't aligned with player.
# Line 134  Line 137 
137  #include <amxmisc>  #include <amxmisc>
138  #include <fakemeta>  #include <fakemeta>
139    
140  new const VERSION[ ] = "1.2.3"  new const VERSION[ ] = "1.2.4b1"
141  new const TRKCVAR[ ] = "grab_plus_version"  new const TRKCVAR[ ] = "grab_plus_version"
142  #define ADMIN ADMIN_LEVEL_A  #define ADMIN ADMIN_LEVEL_A
143    
# Line 546  Line 549 
549          message_end( )          message_end( )
550    
551          new health = pev( target, pev_health ) - dmg          new health = pev( target, pev_health ) - dmg
         set_pev( target, pev_health, float( health ) )  
552          if( health < 1 ) dllfunc( DLLFunc_ClientKill, target )          if( health < 1 ) dllfunc( DLLFunc_ClientKill, target )
553            else {
554                    set_pev( target, pev_health, float( health ) )
555          emit_sound( target, CHAN_BODY, "player/PL_PAIN2.WAV", VOL_NORM, ATTN_NORM, 0, PITCH_NORM )          emit_sound( target, CHAN_BODY, "player/PL_PAIN2.WAV", VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
556            }
557    
558          client_data[id][FLAGS] ^= CDF_NO_CHOKE          client_data[id][FLAGS] ^= CDF_NO_CHOKE
559          set_task( get_pcvar_float( p_choke_time ), "clear_no_choke", TSK_CHKE + id )          set_task( get_pcvar_float( p_choke_time ), "clear_no_choke", TSK_CHKE + id )

Legend:
Removed from v.31  
changed lines
  Added in v.39

Contact
ViewVC Help
Powered by ViewVC 1.0.4