MODSonline Subscriptions
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
The next MODSonair show will air LIVE on:
03/21/2010 12:03 EDT

Time remaining:
We Dontated to PixelEquity
"A total overhaul mod changes or redefines the gameplay style of the original game, while keeping it in the original game's universe or plot." 3
 
Site News   |   Aggregated News   |   Forums   |   Tutorials   |   Downloads   |   Projects   |   Weblinks
Latest Forum Threads 
CoD4 Scripting.. Posts: (4) Views: (171) by Larrabee
General Gaming.. Posts: (3) Views: (69) by BigAl444
CoD4 General.. Posts: (92) Views: (115) by Samuel033
CoD4 MP Mapping.. Posts: (1) Views: (20) by Infern4ll
CoDWW MP Mapping.. Posts: (5) Views: (74) by [ZCT]CoDMapper
CoD4 MP Mapping.. Posts: (10) Views: (146) by [IBS]MattY
CoD4 Map + Mod R.. Posts: (32) Views: (226) by sam_fisher3000
L4D2 Mapping.. Posts: (1) Views: (13) by Eladd
Back to Home Page
MODSCON 2010 L4D2 Contest
Art of War Central
Register/Login to Add a Tutorial
Tutorials
CoD4 Mapping
ratings:
Awful Rating
Poor Rating
Average Rating
Good Rating
Excellent Rating
Exploding Barrels
Versions: You must be logged in to view history.
Hellrazor will show you how to make exploding barrels in Call of Duty 4.

1) I used this barrel: prefabs/interactable_objects/prop_barrel_benzin.map

I checked a couple of the prefab barrels in this folder and all seem to have the necessary properties set.

"targetname" is already set for this to work. If you go into the prefab you'll see a targetname of "explodable_barrel". You don't need to touch this though.

2) put this line into your maps\mp\.gsc file:
maps\mp\_explosive_barrels::main();

This is the script that makes the barrel explode.

3) Update Zone File: add these files to the right column and save.
rawfile,maps/mp/_explosive_barrels.gsc
xmodel,com_barrel_piece
xmodel,com_barrel_piece2
fx,props/barrel_ignite
fx,props/barrel_fire_top

4)Rebuild your map and test it out.

Written By: Hellrazor