UnawarePresence Posted September 24, 2009 Why doesnt this code work? actor DeathCannon : SuperShotgun replaces SuperShotgun { Weapon.SelectionOrder 350 Weapon.AmmoUse 6 Weapon.AmmoGive 12 States { Spawn: DTHC A -1 Loop Ready: DTHC A 1 A_WeaponReady Loop Deselect: DTHC A 1 A_Lower Loop Select: DTHC A 1 A_Raise Loop Fire: DTHC A 3 DTHC A 0 A_FireBullets (13.4, 9.2, 24, 20, "Bulletpuff") DTHC A 7 A_GunFlash DTHC B 7 DTHC C 7 A_CheckReload DTHC D 7 A_OpenShotgun2 DTHC E 7 DTHC F 7 A_LoadShotgun2 DTHC G 6 DTHC H 6 A_CloseShotgun2 DTHC A 5 A_ReFire Goto Ready Flash: DTHC I 6 bright DTHC J 6 bright Stop } }I want it to shoot 6 shells, and fire 24 bullets. 0 Share this post Link to post
reki107 Posted September 24, 2009 Do you mean use 6 ammo, and fire 24 pellets, or use 24 ammo, and fire 6 pellets? I can only help you if I know what you're talking about... 0 Share this post Link to post
UnawarePresence Posted September 24, 2009 I meant 6 shells and 24 pellets, sorry. Ive already made all the sprites and named them DTHC0A - B - C ect. 0 Share this post Link to post
Vermil Posted September 24, 2009 To quote the ZDoom Wiki: http://zdoom.org/wiki/A_FireBullets A_FireBullets(0,0,1,10,"RiflePuff",1) Your missing a value. Also, are decimals accepted for the spread values? 0 Share this post Link to post
UnawarePresence Posted September 24, 2009 Im new to the whole DECORATE thing, but how does this code work?:A_FireBullets (x,x,x,x,x,) That and i dont understand the whole latitude/longitude thing aswell. And is A_OpenShotgun2, A_CloseShotgun2, and A_LoadShotgun2 just a shortcut to saying A_PlaySound? 0 Share this post Link to post