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!