View Single Post
  #10  
Old 07-09-2012, 12:07 PM
Tricxta Tricxta is offline
The Muffin Man
Tricxta's Avatar
Join Date: Oct 2010
Location: Australia
Posts: 563
Tricxta is just really niceTricxta is just really nice
Let's simplify it even further!!
PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
temp.offSets = {{0.6,-2},{-2,1},{0.8,3},{3,1}};
  
setani("shoot", NULL);
  
  for (
temp.d = 0;temp.d < 4;temp.d++){
    for (
temp.i = 0; temp.i < 10; temp.i ++) {
      
putexplosion(0.5, player.x + temp.offSets[temp.d][0] + vecx(temp.d)*temp.i, player.y + temp.offSets[temp.d][1] + vecy(temp.d)*temp.i);
      
sleep(0.05);
    }
  } 
} 
Oh damn, we're going all out!
Reply With Quote