Archvile
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > can someone tell me what worng with my code??
 
Author
All times are GMT. The time now is 17:34. Post New Thread    Post A Reply
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

Old Post 01-28-12 09:36 #
keithktam is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
esselfortium
Cumulonimbus Antagonistic Posting


Posts: 5268
Registered: 01-02


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-ed...creating-flash/ isn't it? :|

Old Post 01-28-12 09:37 #
esselfortium is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 17:34. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > can someone tell me what worng with my code??

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory