keithktam
Green Marine
Posts: 43
Registered: 10-10 |
Hi, i am trying to make my gun illuminate the room when i fire it, but i seems to be unable to get the code right and i don't know why...here is the code(from someone else, i modified it a little):
ACTOR Reaper : Weapon 6021
{
Inventory.PickupMessage "You got the Reaper"
Weapon.SelectionOrder 1900
Inventory.Amount 8
Inventory.MaxAmount 200
Weapon.AmmoUse1 1
Weapon.Kickback 2
weapon.ammotype "Clip"
Weapon.SlotNumber 2
obituary "%o Didn't hear %k's Bullets coming."
AttackSound "DSFLWEXP"
States
{
Spawn:
SOLT A -1
Stop
Ready:
COLT A 1 A_WeaponReady
LOOP
Deselect:
COLT A 1 A_Lower
Loop
Select:
COLT A 1 A_Raise
LOOP
Fire:
COLT A 2
COLT B 12 A_FireBullets(2,2,10,15,"BulletPuff",1)
COLT C 1
COLT A 0
COLT B 0 A_WeaponReady
Goto Ready
Flash:
TNT1 A 1 A_Light1
TNT1 A 1 A_Light2
TNT1 A 1 A_Light0
Stop
}
}
the flash: set of code i copied it from another weapons that act as a shotgun, i know simply by copy and paste from other people code are just plain stupid, but i actually have try different approaches, i try to use the code from a default doom shotgun also pistol too, that didn't work, try to change the animation sprites to the ones i have, for example, TNT1 to COLT B, that didn't work either, so don't know why...
would be grateful for any help!!!
keith
|