Death triggering spawning

Discuss all aspects related to modding Zandronum here.
Post Reply
Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

Death triggering spawning

#1

Post by Lollipop » Sat May 31, 2014 3:10 pm

I have issues doing this:

1. A specific monster type dies
2. In it's death it triggers a script
3. This script spawn another monster at a random spawnspot on the map

Appearntly trying everything does not work, spawnspotfacingforced ended up spawning pistols for no appearnt reason, until I changed the actor to spawn to shotguns, then nothing happened at all.

I use acs_executealways in the last line of the monsters death sequence, and using sector_setcolor to test if it ran, which it proved that it did.

Now, here is the odd part:
I kill one of the aforesaid monsters and nothing happens, but puking the script makes a nice little shotgun come to daddy.

So just what difference is there in calling the same script from the death of a monster and just puking it in the console?

EDIT:
I have found that putting the exact same code directly into the map works. While this sounds nice, I would prefer it to be universal with LOADACS.

I want to hear if this wierd behavior is a bug or if it is some kind of intended feature to prevent spawning things with acs loaded with LOADACS?...
Last edited by Lollipop on Sat May 31, 2014 3:35 pm, edited 1 time in total.
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

RE: Death triggering spawning

#2

Post by Konda » Sat May 31, 2014 5:47 pm

It wouldn't make sense if that was a feature. It sounds more like a bug. However, I think it would help if you posted the monster's Decorate and the ACS script. There is a possibility that you've done something wrong with some of these:
  • The monster's Decorate
  • The ACS script
  • The way you made the ACS script global (loadacs or #library/#include error)
  • Used the wrong, or wrong version of, the ACC compiler
For more debugging you can try executing the same script in some monster's state other than the Death state.
Last edited by Konda on Sat May 31, 2014 5:49 pm, edited 1 time in total.

Code: Select all

<Synert> fuck
<Synert> plugged in my memory stick and got a bsod

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: Death triggering spawning

#3

Post by Lollipop » Wed Jun 04, 2014 9:05 am

Sorry for the late reply, I have been busy, lazy and tired the last few days :razz:

I have approached the problem with a fresh mind today and I have realised that I am just an idiot, I did not have a #library at all! *Slapped myself*
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

Post Reply