Exploding Barrels

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Exploding Barrels

Post by m4rine »

in game where you shoot barrel and it explodes... how would i get that? i have tried func->barrel almost certain it woudn't work without FX or scripting (and i was right), so i have two questions, kinda linked sort-of:

can someone explain to me how the right-click 'fx' works. if i put this in radiant, it wont do anyhting i presume. i need to script right? this goes for water dripping, explosions etc.

also, sorta the same as above, but percifically about the barrel. how would i script / FX a barrel?

cheers,

m4rine
"We must become the change we want to see in the world" (Mahatma Gandhi)
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Make your brush a func>barrel and put these key/values:

key:barreltype
value:gas

:wink:
Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

cheers krane :D
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

explosions

Post by tltrude »

The explosion/smoke entities are all different. Some can be set off by putting this line in your script.

$myexplosion anim start

But for some you have to first stop the animation in prespawn.

$myexplosion anim stop // or idle

The animation names can be seen, for an entity, by hitting key N and clicking on the Anim: +- buttons. But, you should also study the tik file of what you want to use--some will say "start on".

By the way, you can download prefab func_barrels from Nemisis' site.
http://users.1st.net/kimberly/Tutorial/prefabs.htm
Tom Trude,

Image
Wilson
Warrant Officer
Posts: 131
Joined: Fri Mar 07, 2003 6:12 pm

Post by Wilson »

I wouldnt use exploding barrels, its a hollywood thing, things dont explode like that from a bullet, maybe gas tho.
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

the barrels ive got take a few shots to explode... and

1. i think a thin barrel full of fuel would explode ;)

2. its fun to kill groups of soldiers hiding behind the barrels, lot more fun than ur avarage SP killing anyhows :D
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

lol i agree M4rine, to kill a bunch of ppl hiding behind some unstable barrels of gas is quite fun :)
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

drag, why are you doing this? let the old posts lie. June 1st and August 27th!!! it doesnt take a genius to figure it out!
User avatar
HDL_CinC_Dragon
Brigadier General
Posts: 574
Joined: Mon Dec 22, 2003 8:32 pm

Post by HDL_CinC_Dragon »

sry :oops: :oops: :oops: :oops: I dont usually look at post dates. sry again :oops: :oops: :oops: :oops: :oops: :oops:
Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

oh do you have it set for alphabetized? :wink: gotcha...
Post Reply