Advertisement
ColdWar-Pawn

"FallDown"

Jan 3rd, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.70 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < engine >
  5. #include < hamsandwich >
  6.  
  7. #pragma semicolon 1
  8.  
  9. new const plugin_info[ 3 ][ ] = {
  10.     "FallDown",
  11.     "v0.1",
  12.     "+ColdWar"
  13. };
  14.  
  15.  
  16. public plugin_init()
  17. {
  18.     register_plugin( plugin_info[ 0 ] , plugin_info[ 1 ] , plugin_info[ 2 ] );
  19.    
  20.     RegisterHam( Ham_TakeDamage, "player", "Ham_TakeDamage_Pre" );
  21. }
  22.  
  23. public Ham_TakeDamage_Pre( iVictim ,iInflictor ,iAttacker , Float:flDamage, bits )
  24. {
  25.     new Float: g_flVelocity[ 3 ];
  26.    
  27.     for( new i = 0 ; i < 3 ; i ++ )
  28.         g_flVelocity[ i ] = random_float( ( flDamage * 10.0 ) - 100.0, ( flDamage * 10.0 ) + 100.0 );
  29.        
  30.     entity_set_vector( iVictim, EV_VEC_velocity, g_flVelocity );
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement