Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / Modified Spawning Code

Author
Message
Ched80
15
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 20th May 2011 21:46
Hi all,

This is my first attempt at modifying the FPSC source so any comments, suggestions are appreciated.

As the title suggests I've modified the spawning code of FPSC to allow a bit more control.

CONDITIONS
"spawnsleft=X"
This condition checks the number of spawns remaining for the entity and returns true if X is 1 and the entity is able to spawn or X is 0 and the entity cannot spawn any more entities.

ACTIONS
"clone"
This action initiates a spawn of the entity.

"clonetarget"
This action initiates a spawn of the entity' target.

"cloneifused"
This action initiates a spawn of the entity named in the entity's "If Used" parameter.

I'm not posting an actual compiled mod as I've only coded a small number of features. Instead I'm posting the code so any existing mods are free to incorporate them.

Code and explanation attached.

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]

Login to post a reply

Server time is: 2026-06-28 01:04:42
Your offset time is: 2026-06-28 01:04:42