Severed bunny head
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 > Wake up on spawn?
 
Author
All times are GMT. The time now is 13:06. Post New Thread    Post A Reply
Patrick
someone employed to clean and maintain a building


Posts: 2005
Registered: 02-07


I have made a decorate weapon that changes the enemy into a different enemy, but the only problem I'm running into is when the new enemy spawns. When the new enemy appears, it is idle; therefore an easy target for the player. Is it possible to make it spawn active?

Here are the relevant bits of code:

code:
... { Death.Morph: FATB G 3 A_Die TNT1 A 0 A_UnSetSolid TNT1 A 0 A_CustomMissile("AlienMorpher",0,0,0,0) Stop } ACTOR AlienMorpher{ States { Spawn: ... TNT1 A 1 A_SpawnItem("MorphedBadassAlien",0,0,0,0) Stop } } ACTOR MorphedBadassAlien //This Actor is 'asleep' when it is spawned { Game Doom PainChance 255 Monster ... States { Spawn: GRNT AB 5 A_Look Loop See: GRNT AABBCCDD 2 A_Chase Loop ... } }

Old Post 02-09-10 02:45 #
Patrick is offline Profile || Blog || Search || Add Buddy IP || Edit/Delete || Quote
Mr. T
Senior Member


Posts: 1136
Registered: 12-03



Patrick said:
I have made a decorate weapon that changes the enemy into a different enemy, but the only problem I'm running into is when the new enemy spawns. When the new enemy appears, it is idle; therefore an easy target for the player. Is it possible to make it spawn active?

Here are the relevant bits of code:

code:
... { Death.Morph: FATB G 3 A_Die TNT1 A 0 A_UnSetSolid TNT1 A 0 A_CustomMissile("AlienMorpher",0,0,0,0) Stop } ACTOR AlienMorpher{ States { Spawn: ... TNT1 A 1 A_SpawnItem("MorphedBadassAlien",0,0,0,0) Stop } } ACTOR MorphedBadassAlien //This Actor is 'asleep' when it is spawned { Game Doom PainChance 255 Monster ... States { Spawn: GRNT AB 5 A_Look Loop See: GRNT AABBCCDD 2 A_Chase Loop ... } }



Not a coder, but maybe the code that's commented "//This Actor is 'asleep' when it is spawned" has some kind of relevance to your problem???

Old Post 02-09-10 03:07 #
Mr. T is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
andrewj
Senior Member


Posts: 1344
Registered: 04-02


Perhaps: remove the 'Loop' in the Spawn states.

Or you might need to augment the Spawn states with an action which makes him walk around.

Old Post 02-09-10 03:38 #
andrewj is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Patrick
someone employed to clean and maintain a building


Posts: 2005
Registered: 02-07


Whoa, I didn't know that would actually work. Thanks!

Old Post 02-09-10 03:42 #
Patrick is offline Profile || Blog || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 13:06. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Wake up on spawn?

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