[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 11, Tue Nov 6 18:25:29 2007 UTC revision 12, Tue Nov 6 19:57:19 2007 UTC
# Line 23  Line 23 
23  This is a remake from scratch of SpaceDude's Jedi Force Grab plugin.  It has many additional features and optimizations, is less spammy, multilingual and requires fewer binds.  This is a remake from scratch of SpaceDude's Jedi Force Grab plugin.  It has many additional features and optimizations, is less spammy, multilingual and requires fewer binds.
24    
25    
 See it in Action:  
 http://www.game-monitor.com/search.php?search=grab_plus_version&type=variable&game=all&location=all  
   
   
26  Features:  Features:
27  Multilingual  Multilingual
28  Screenfade to indicate grab activity instead of chat spam.  Screenfade to indicate grab activity instead of chat spam.
# Line 295  Line 291 
291          if( pev( target, pev_movetype ) == MOVETYPE_FLY && !(pev( target, pev_button ) & IN_JUMP ) ) client_cmd( target, "+jump;wait;-jump" )          if( pev( target, pev_movetype ) == MOVETYPE_FLY && !(pev( target, pev_button ) & IN_JUMP ) ) client_cmd( target, "+jump;wait;-jump" )
292    
293          //Move targeted client          //Move targeted client
294          new Float:tmpvec[3], Float:tmpvec2[3], /*Float:dest[3],*/ Float:torig[3], Float:tvel[3]          new Float:tmpvec[3], Float:tmpvec2[3], Float:torig[3], Float:tvel[3]
295    
         //pev( id, pev_origin, dest )  
         //pev( id, pev_view_ofs, tmpvec )  
296          get_view_pos( id, tmpvec )          get_view_pos( id, tmpvec )
297    
         //velocity_by_aim( id, len, tmpvec2 )  
         //for( new i = 0; i < 3; i++ ) tmpvec2[i] *= len  
298          tmpvec2 = vel_by_aim( id, client_data[id][GRAB_LEN] )          tmpvec2 = vel_by_aim( id, client_data[id][GRAB_LEN] )
299    
300          torig = get_target_origin_f( target )          torig = get_target_origin_f( target )
# Line 311  Line 303 
303    
304          for( new i = 0; i < 3; i++ )          for( new i = 0; i < 3; i++ )
305                  tvel[i] = ( ( tmpvec[i] + tmpvec2[i] ) - torig[i] ) * force                  tvel[i] = ( ( tmpvec[i] + tmpvec2[i] ) - torig[i] ) * force
         /*{  
                 dest[i] = tmpvec[i] + tmpvec2[i]  
                 tvel[i] = ( dest[i] - torig[i] ) * force  
         }*/  
306    
307          set_pev( target, pev_velocity, tvel )          set_pev( target, pev_velocity, tvel )
308  }  }

Legend:
Removed from v.11  
changed lines
  Added in v.12

Contact
ViewVC Help
Powered by ViewVC 1.0.4