Advertisement
Guest User

Untitled

a guest
Jul 27th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ExplosionWednesday()
  2. {
  3. for(;;)
  4. {
  5. self waittill ( "weapon_fired" );
  6. forward = self getTagOrigin("j_head");
  7. end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
  8. SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
  9. level.chopper_fx["explode"]["medium"] = loadfx ("explosions/fx_exp_aerial");
  10. playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
  11. RadiusDamage( SPLOSIONlocation, 500, 1000, 500, self );
  12. }
  13. }
  14. vector_scal(vec, scale)
  15. {
  16. vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
  17. return vec;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement