Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-01-31 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
January 31, 2010, 02:06:01 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Explosive Barrels!!!  (Read 2560 times)
Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« on: November 27, 2007, 04:44:44 AM »

As per request, I have posted this code in a new topic for ease of finding and what not.

es_WCSraces_db.txt
Code
GeSHi (eventscripts):
"#"
{
"name"              "Explosive Prop Test"
"author"            "Phat_Wizard"
"shortdescription"  "[test]"
"required_level"    "0"
"maximum_level"     "0"
"allow_only"        "0"
"teamlimit"         "0"
"preloadcmd"        "0"
"player_spawn_cmd"  "0"
"round_start_cmd"   "0"
"round_end_cmd"     "0"
"numberofskills"    "3"
"numberoflevels"    "4"
"skillnames"        "Speed|Gravity|Explosive Prop"
"skilldescr"        "+speed|-gravity|spawn a prop then... BOOM!!!"
"skillcfg"          "player_spawn|player_spawn|player_ultimate"
 
"skill1_setting"    "es_set wcs_speed 1.4|es_set wcs_speed 1.6|es_set wcs_speed 1.8|es_set wcs_speed 2.0"
"skill1_cmd"        "es est_speed event_var(userid) server_var(wcs_speed)"
"skill1_sfx"        ""
 
"skill2_setting"    "es_set wcs_grav 0.8|es_set wcs_grav 0.6|es_set wcs_grav 0.4|es_set wcs_grav 0.2"
"skill2_cmd"        "es est_setgravity event_var(userid) server_var(wcs_grav)"
"skill2_sfx"        ""
 
"skill3_setting"    "es_set wcs_fuse 4|es_set wcs_fuse 3|es_set wcs_fuse 2|es_set wcs_fuse 1"
"skill3_cmd"        "es_doblock wcs/WCSultimates/wcs_ultiexplodeprop"
"skill3_sfx"        ""
"ultimate_cooldown" "5|4|3|2"
}

es_WCSultimates.txt
Code
GeSHi (eventscripts):
block wcs_ultiexplodeprop
{
es_prop_physics_create server_var(wcs_userid) props_c17/oildrum001_explosive.mdl
 
es_format wcs_temp "wcs_%1" server_var(wcs_userid)
es est_setentname server_var(eventscripts_lastgive) server_var(wcs_temp)
 
es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "spawnflags 256"
es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "physdamagescale 9999"
es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "exploderadius 400"
es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "explodedamage 200"
es_delayed server_var(wcs_fuse) es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "onhealthchanged !self,break"
es_delayed server_var(wcs_fuse) es_fire server_var(wcs_userid) server_var(wcs_temp) addoutput "onhealthchanged !self,kill,,1.0"
}

After putting the code in the correct text files it should work, as in I DID test this by my self with bots and it worked... also you can change the length of the "fuse" withing the skills settings as well you can change the ultimate cool down. Please note that when the barrel kills a player the player suicides, but none the less is very fun. Tongue
« Last Edit: September 16, 2008, 11:24:55 PM by Phat_Wizard » Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #1 on: November 29, 2007, 03:19:59 AM »

lol, maybe since you say server is ZM you might want to put a team check in there so that zombies can destroy cades.  Wink
Logged

Angelღ
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 334


WWW
1101101
younggunelite
« Reply #2 on: November 30, 2007, 10:13:15 PM »

ya lol
Logged

"Death is just the first step"

~AJ
jimbodude
Level 2 Apprentice
**
Offline Offline

United Kingdom

Posts: 57




134jimbodude
134jimbodude
« Reply #3 on: January 31, 2008, 05:13:45 PM »

So this makes anything exploded when you shoot it?
Logged

Phat_Wizard
<WCS coder>
Level 7 Expert
*****
Offline Offline

Canada Canada

Posts: 229




Phat_Wizard
phatwizard
« Reply #4 on: January 31, 2008, 06:26:43 PM »

no you spawn a barrel and the barrel will explode...
Logged

Carnifexe
Level 0 Beginner

Offline Offline

Germany Germany

Posts: 18



« Reply #5 on: February 01, 2008, 01:47:51 PM »

It will be more fun when you can set the barrel on the ground and you get the kill from i ask Phat_Wizard about into a request
« Last Edit: February 01, 2008, 01:50:18 PM by Carnifexe » Logged

terror
Level 0 Beginner

Offline Offline

United States United States

Posts: 8




terror_ftw
« Reply #6 on: February 10, 2008, 03:39:57 AM »

this is my fav skill funnest skill ever
Logged

Carnifexe
Level 0 Beginner

Offline Offline

Germany Germany

Posts: 18



« Reply #7 on: February 19, 2008, 08:30:10 AM »

ok i figured out by my self now i can shoot em perfect bye carnifexe
Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1472




Rasmus4J
rasmus4j
« Reply #8 on: May 18, 2008, 01:52:59 PM »

do you spawn the barrel where you stand or where you look?
because im trying to make a skill which will spawn a barrel at viewcoord, but it doesnt spawn the barrel:(
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
runnen
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 72



« Reply #9 on: June 05, 2008, 03:50:26 AM »

does this have to be fully leveled to work? or did i do something wrong?

i put the block in the es_WCSultimates.txt instead of the es_WCSultimates_db.txt because there wasnt a folder named that in my server.

is that my problem?
Logged

RK1132
Level 5 Trained Intermediate
*****
Offline Offline

United States United States

Posts: 105




Kballer117

myServer 67.201.15.212:27015
(Warning: click connects through Steam)
« Reply #10 on: June 05, 2008, 05:02:25 AM »

NICe tight  spam
« Last Edit: September 16, 2008, 07:43:48 PM by First Samurai » Logged

benoii
Level 0 Beginner

Offline Offline

Germany Germany

Posts: 2



« Reply #11 on: September 16, 2008, 06:20:47 PM »

At my Server the are Comin no Barrels ;( only the Ultimate Cooldown!?  could one help me pls?? :roll:
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
January 30, 2010, 08:48:38 PM
wcs_alpha is used for effects to determine how visible/bright/see-through an effect is.
January 30, 2010, 05:44:23 PM
Has nothing to do with the speed. wcs_alpha is just a variable which can be used anywhere.
January 30, 2010, 05:40:44 PM
oh and thank you ^.^
January 30, 2010, 05:40:32 PM
ohh... but it shouldnt be with the settings of speed right?
January 30, 2010, 12:19:50 AM
wcs_alpha actually doesn't affect the invis as far as I know, it's just a variable which goes by wcs_invis.
January 29, 2010, 11:20:18 PM
ha ha copy paste fail below >.>
January 29, 2010, 11:19:30 PM
# Jessory: ok i got the answer.. i figured it was about the transperacy and i was right. except i seen wcs_alpha in the settings with speed... so it confused me abit and made me wonder why alpha was with speed.. found out its just extra crap is all
Recent
[Today at 01:31:10 PM]

[Today at 01:17:05 PM]

[Today at 12:15:31 PM]

[Today at 02:33:17 AM]

by amiq
[Today at 02:18:57 AM]

[Today at 01:05:12 AM]

by amiq
[January 30, 2010, 10:13:03 PM]

[January 30, 2010, 09:03:05 PM]

[January 30, 2010, 08:12:16 PM]

[January 30, 2010, 01:24:55 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.238 seconds with 24 queries.