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 Scripts / What do 'rundecal=x' do?

Author
Message
mnemonic
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 25th Jul 2012 20:26
Hi! Below is a modified version of the original fpi ran when the player picks up a key. I've altered this to suit my game, but that's not relevant here.

in the last line: What does the command 'rundecal' really do?
it is described with: 'RUNDECAL=X create a decal of the entity - X being a specific mode 1-6' in FPIeditpad. I've tried to change it's value from 1 to 6 just to see what happens, but I donnot notice any difference. So,,, what does it do? And why is it there?

Best!



www.memblockgames.com
BlackFox
FPSC Master
16
Years of Service
User Offline
Joined: 5th May 2008
Location: Knight to Queens Bishop 3
Posted: 26th Jul 2012 05:12
There is actually a difference, at least in v1.17. Unless something drastic has changed with the decal usage in the engine, here is how it works.

There are 6 modes:



Here is an example. I used a small fire decal.

If I place the decal and use "rundecal=2" in the script, the decal will face the player no matter where the player is. The following three screen show the decal "rotating" to face the player no matter where the player moves.

Start position


Move to one corner- decal rotates to face player


Move to second corner- decal still rotates to face player


If I use "rundecal=3", the decal will remain facing the forward direction, which means the player can move to the side and the decal will suddenly look like a line as you move to the decal side. The following three images show what happens.

Start position


Moving along the path- decal remains in original position


Side by side with decal- decal remains in original position and is a thin line


That is what the modes are for.


Twitter: @NFoxMedia

Login to post a reply

Server time is: 2024-11-23 21:31:21
Your offset time is: 2024-11-23 21:31:21