Inside3D tutorials.
Created By: | Timm 'Mr?' Stokke |
eMail: | hestokke@online.no |
Difficulty Scale: | Easy |
/* ================ W_FireShotgun ================ */ void() W_FireShotgun = { local vector dir; sound (self, CHAN_WEAPON, "weapons/guncock.wav", 1, ATTN_NORM); // The SG sound self.punchangle_x = -2; self.currentammo = self.ammo_shells = self.ammo_shells - 1; //How much a shot needs dir = aim (self, 1000); //How good to aim. For the magnum, i suggest 10-100 FireBullets (20, dir, '0.04 0.04 0'); //20=20 bullets. 0.04= width\height //Good for da magnum is 0.001 };