Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
keithktam

can someone tell me what worng with my code??

Recommended Posts

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

Share this post


Link to post

Hey, first of all, all this stuff should go in Doom Editing like I just told you in your other thread.

Secondly, if you have a bunch of DECORATE questions you should just make one thread for them instead of spamming the forum with a bunch of threads all with related questions over the course of a few minutes.

... Actually, this is the exact same question as in http://www.doomworld.com/vb/doom-editing/58683-a-question-on-creating-flash/ isn't it? :|

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×