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 / Flammable barrel

Author
Message
Opposing force
19
Years of Service
User Offline
Joined: 10th Aug 2005
Location: England
Posted: 11th Apr 2007 14:40
I was wondering if the following can be done. I have a fair idea but I cannot think of a practical way to go about it. Those who have played Half Life 2 will know what I mean. Bacically I am trying to make a script for a barrel that contains some sort of flammable liquid. When the player shoots the barrel, it starts burning (A flame decal could appear above the barrel) after, say 4 seconds the barrel explodes and the flame decal disappears. What I would like to know is....

-How do I make a flame decal appear above a barrel when I shoot it once.
-When the flame decal is playing the timer goes down from 4 seconds.
-When the timer reaches zero the barrel explodes and the decal disappears.

The barrel doesn't have to be able to move (picked up etc) because that would complicate things. Thanks in advance.

Sign up today! Next 2 people who sign up will be made Moderators!
http://teammegabasic.proboards59.com
incense
18
Years of Service
User Offline
Joined: 25th Nov 2005
Location:
Posted: 11th Apr 2007 17:23
I have tried many meathods using existing scripts and have failed to get thtis to work. The decals dont have the settings or scripts for this that I can see. If there is upport in the engine for such a thing, you will probably have create your own scripts to make it happen.

In order to help you I searched the manual and forums and the FPSC Hints and Tips guide. I also set up a test level and tried all of the cripts that seem to fit the need. It all failed misreably.

If you find a way to get it to work, please let me know. I would have a use for such a thing.

The person that now knows the most started with many questions. Patients and tolorance are the keys to the passage of knowledge. FPSC is Getting better. Now if we can just keep the ball rolling.
Opposing force
19
Years of Service
User Offline
Joined: 10th Aug 2005
Location: England
Posted: 11th Apr 2007 17:42
Sure thing incense

SIX FEET STORIES
17
Years of Service
User Offline
Joined: 28th Jan 2007
Location:
Posted: 1st May 2007 20:29
sorry to bump this
but cant you just right click on the barrel and make it "explodable"?
and set the damage to 25 or something, also you could just set a decal on a trigger zone to play when you shoot the barrel, im not sure if thats possible but id just thought id say.
Marine10 beta corp
17
Years of Service
User Offline
Joined: 14th Jan 2007
Location: First Man Studios
Posted: 2nd May 2007 17:06 Edited at: 2nd May 2007 17:07
*appears from a cloud of smoke*

wazza!!! I will attemt to make the script for you!!!
basicaaly, you could use the scripting to make a decal follow a barral. You would need two scripts though.

I would also have to make it so that when the barrel "dies," the decal would dissapear.

as for the 4 sec thing, i don't think that could be done with basic scripts.
expect it in a day or two!!

FIRST MAN STUDIOS
Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 2nd May 2007 17:21
Why not just make it's "hit" decal (the decal it plays when shot) fire?
Slayer_2

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 2nd May 2007 17:42 Edited at: 2nd May 2007 17:47
Quote: "basicaaly, you could use the scripting to make a decal follow a barral"

that aint gonna happen. The decal marker you place in the level is exactly that, a marker. It cannot be moved around via it's script. You'd be better off asigning the entity 2 decals in it's FPE. one for damage and one for when it's on fire like :



then the entity's script would be somethinglike:
Quote: "
:state=0,shotdamage=20:state=1
:state=1,rundecal=6(or 2 if you want)"


That would mean it would catch fire after 20 damage, and stay burning until you shot it to destruction. Unfortunately, there is no way to make it explode after a certain time, as the destroy command will only run the entity's destroy script, not actually take its health to 0. What I'm saying is, you can destroy the barrel after 4 secs, but it'll just dissapear, there's no way to make it blow up!

**EDIT**
Quote: "*appears from a cloud of smoke*"

I would point out, that appearing from a cloud of smoke is usually reserved for script geniuses such as Merranvo (les horribles). It's only embarrassing to appear from a cloud of smoke, and suggest something that blantantly isn't possible!

Mickm
18
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 2nd May 2007 17:58 Edited at: 2nd May 2007 18:00
Quote: "I would point out, that appearing from a cloud of smoke is usually reserved for script geniuses such as Merranvo (les horribles). It's only embarrassing to appear from a cloud of smoke, and suggest something that blantantly isn't possible!"


Way off topic, but that was hilarious.

http://www.gamestack.org
http://onlinenotes.gamestack.org
http://onlinebookmarks.gamestack.org
Slayer222
17
Years of Service
User Offline
Joined: 19th Mar 2007
Location: Wherever I feel like
Posted: 4th May 2007 07:17
Quote: "Quote: "*appears from a cloud of smoke*"
I would point out, that appearing from a cloud of smoke is usually reserved for script geniuses such as Merranvo (les horribles). It's only embarrassing to appear from a cloud of smoke, and suggest something that blantantly isn't possible!"
HAHAHA! appears from cloud of smoke and trips on his wizard tunic

*Slayer_2
P.S. sorry for the off topic

EOT
[img][/img]
Check it out here: http://eliteops.piczo.com/?cr=6&rfm=y
Nue B
19
Years of Service
User Offline
Joined: 20th Nov 2005
Location: Indy
Posted: 5th May 2007 23:51 Edited at: 5th May 2007 23:53
Quote: "-How do I make a flame decal appear above a barrel when I shoot it once."


You'll have to place your Decal above the barrel. Edit the decal.fpi script like this:



Then add this command to the barrel's script:



Make sure you place the name of the decal in the ifused box (e.g. smallfire) and change the start script of the decal to appear1.fpi



Quote: "-When the flame decal is playing the timer goes down from 4 seconds."


same script as above with timer added.





Quote: "-When the timer reaches zero the barrel explodes and the decal disappears."


Decals don't give the option to link to an Ifused entity, so the only way to accomplish this is to syncronize the timing of the decal and the destruction of the barrel. You can do that by adding this command to the barrels main script:



*This last code is thearedical. i haven't tested it so it may not work well. At least you know that it can be done.

Quote: "The barrel doesn't have to be able to move (picked up etc) because that would complicate things."


you can keep a dynamic entity grounded by setting Isimmobile to YES!

Opposing force
19
Years of Service
User Offline
Joined: 10th Aug 2005
Location: England
Posted: 6th May 2007 00:29
Thanks everyone I'll try that out

Airslide
20
Years of Service
User Offline
Joined: 18th Oct 2004
Location: California
Posted: 6th May 2007 02:04
I tried this before, don't think I still have the script though (diffrent computer). It didn't seem to work out too well...and it wouldn't explode after a set amount of time. Wish ya luck though.

Quote: "I would point out, that appearing from a cloud of smoke is usually reserved for script geniuses such as Merranvo (les horribles)."


Is he still around anymore? And I never recall him poofing from a cloud of smoke (He just 'appeared', per say....often with a lound, contradicting voice...lol)

FADE Studios
17
Years of Service
User Offline
Joined: 3rd May 2007
Location:
Posted: 8th May 2007 01:40
Could it be able to just be like this-

(RE4 Fans will know what I mean)

Shoot the barrel and just make it explode? Can that work?

Manager Of The Soon To Become Known Fade Studios
MikeB
17
Years of Service
User Offline
Joined: 5th Apr 2007
Location: My Computer, Shropshire, England
Posted: 12th May 2007 22:07
Set the barrel's health to 1 FADE Studios.
Make sure explode is set to 1 aswell.

E.D.

Login to post a reply

Server time is: 2024-11-23 15:49:15
Your offset time is: 2024-11-23 15:49:15