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 / how do you make a triggerzone spawn a decal and only run once or twice?

Author
Message
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 14th Aug 2007 11:05
Sorry if this is a noobish question but, how do you make a triggerzone spawn a decal and only run once or twice? I am familiar with how to get an entity to spawn in a triggerzone, but not familiar with getting a decal to spawn...but only once or twice. Any help would be great. I have serched every decal post.


Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 14th Aug 2007 11:30
ok, so you know that there are the following ways to run a decal?
; 0-once face player
; 1-once keep angle
; 2-loop face player
; 3-loop keep angle
; 4-once face up
; 5-loop face up
; 6-character-spot-decal (at end of entity characters gun if available)

but typing run decal=0 is buggy and plays more that once, so I'd advise altering the alphafade of it. WHat do you want to make appear?! If it's fire or something, I have a solution.
butters

Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 14th Aug 2007 14:42
well im haveing some rather dusty fellows spawn/pop out of the ground and wanted some dust to be kicked up on the spot they're on then just go away. That's pretty much the jist of it. Man they really need an indepth manual rewrite that goes into functions and such, as you listed.


Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 14th Aug 2007 17:34
OK, so here's how you do it.

The entity is gonna be renamed dusty, and so is the decal.

There is a trigger zone setup for the dusty character that makes him spawn when the player hits a trigger.

place the dust puff directly over the enemy and give it the following script:



I've tested it and it works a treat...actually a pretty tidy piece of code...if I do say so myself!

Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 14th Aug 2007 17:44 Edited at: 14th Aug 2007 17:53
NICE! Thanks a million!!! Always remember if you need anything don't hesitate to ask me.

EDIT- I tried it and man its so nice! works like a charm. You Da Man!


Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 14th Aug 2007 18:16
Probably no-one is ever gonna read this other than you Disturbing, so heres another one.

It randomly loops back to the first state, so that the decal turns on and off repeatedly.

it looks wicked for sparks, or group about 10 fire decals in a segment square, and these look great.

peace.
butters

I made sure it didn't waste processor space, so I introduced a field of view factor. Basically, you place the decals where you want them, and stretch a trigger zone over the entire area that they will be visible, you then give the trigger a "plrinzone.fpi" and activate the decals from the trigger , so that the decal is only active when the player is in the zone.

to anyone else downloading:
As far as I can tell from the forums, no has ever managed this before (just look at how many "decal appearing?" threads there are), therefore licence wise:

licence
This code is (as far as the forums go) the first of it's kind, and so although it can be used within any project, commercial or otherwise, a credit would be neccessary. This goes for all scripts derived from it, as the initial concept is mine.


Ha! might sound a bit anal, but I'm fed up of people editing one line in sensei and claiming its theirs.

[/code]

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 14th Aug 2007 18:37
Quote: "Ha! might sound a bit anal"


Yep, but I see the point.

Quote: "Probably no-one is ever gonna read this other than you Disturbing, so heres another one. "


Are you kidding? I'm pasting these in my "tricks" text file for later use. Thanks for the scripts.

Best.

I'm sorry, my answers are limited. You must ask the right question.

AaronG
18
Years of Service
User Offline
Joined: 28th Oct 2006
Location: Millstone, NJ
Posted: 14th Aug 2007 19:19
Haha. Wow, thanks man.

Silent Thunder
18
Years of Service
User Offline
Joined: 6th Feb 2006
Location: The Ship
Posted: 14th Aug 2007 20:00
These are very helpful, thanks!



Click on the picture to order your copy today!
pigs can fly
18
Years of Service
User Offline
Joined: 20th Aug 2006
Location: Luxembourg
Posted: 14th Aug 2007 20:04
Very helpful! Thanks

PCF Killer&Slaughter Machines Pack in progress
AMD Sempron 2,0Ghz - Windows XP Home - ATI All-in-Wonder X800XT 256mb - 1024mb RAM - using Photoshop and Milkshape
pigs_can_fly.hot.lu/pcf
Disturbing 13
19
Years of Service
User Offline
Joined: 12th Apr 2005
Location: Murder Capital of the World
Posted: 14th Aug 2007 21:47
Your definitely in my credits


dfujis the rocker
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location:
Posted: 15th Aug 2007 02:42
I see Butters as the kid who wants to share candy with a friend but the big crowd came over and took some too

famous last words: check this out
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 15th Aug 2007 03:26
I see dfujis the rocker as a guy who makes pointless, quippy and generally unhelpful stuff in 3 threads in a row.

If I only wanted to give it to D13 I'd email it to him dufus.
It's not that I don't want to share the candy, it's just that I hate it when I make all the candy at home, and bake it, and do the icing sugar and everything, and then some kid gets it, puts a chocolate sprinkle on top and calls it his.

rolfy
18
Years of Service
User Offline
Joined: 23rd Jun 2006
Location:
Posted: 15th Aug 2007 06:33
This is good stuff Butters, thank you very much.
I have no chocolate sprinkling,would hundreds and thousands do?

s4real
VIP Member
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 15th Aug 2007 21:12
Nice one Butters works a treat.

Many thanks S4

Login to post a reply

Server time is: 2024-11-23 20:37:57
Your offset time is: 2024-11-23 20:37:57