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 2008-05-12 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 12, 2008, 02:34:20 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Also here is the WCS Wiki!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: Holliday need help touching this race up  (Read 78 times)
Gerrard [Jake]
Level 3 Trained Apprentice
***
Offline Offline

Australia Australia

Posts: 77



« on: May 05, 2008, 02:21:47 PM »

Code:
    "105"
   {
    "name"              "[TF2] Spy Class"
    "author"            "orgNl.Gaming Jake [Ldr]/HOLLIDAY"
    "shortdescription"  "This is Basicly Like The Spy From Team Fortress 2. Use Your Skills and Ultimate Wisely to become A Great Spy."
    "required_level"    "900"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "1"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es es_xdelayed 1.6 est_stripplayer event_var(userid) 1;es es_xdelayed 1.1 est_RestrictAll event_var(userid);es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_deagle;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 1.8 est_unrestrict event_var(userid) item_defuser;es es_xdelayed 1.8 es_xgive event_var(userid) weapon_knife;es es_xdelayed 1.9 es_xgive event_var(userid) weapon_deagle"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "5"
    "skillnames"        "Disguise Kit|BackStab|Cunning|Cloak"
    "skilldescr"        "Receieve A Disguise Kit When The Chance Is Right And Disguise Into The Enemy. Chance: 60% - 99% |Backstab The Enemy To Receive An Instant Kill. Chance: 50% - 99% |Spy Is Cunning And Devious And Tricks Them Into Turning Around To Backstab Them Chance: 38% - 66%|Drop All Your Weapons And Become Fully Invisible For As Long As You Want Untill You Press Your Ultimate Again And Receive Your Weapons Back At The Cost Of Becoming Visible."
    "skillcfg"          "player_spawn|player_attacker|player_attacker|player_ultimate"

    "skill1_setting"    "es_xsetinfo wcs_chance 60|es_xsetinfo wcs_chance 75|es_xsetinfo wcs_chance 89|es_xsetinfo wcs_chance 99"
    "skill1_cmd"        "es_xdoblock wcs/WCSultimates/wcs_playermodels"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xsetinfo wcs_chance 50|es_xsetinfo wcs_chance 70|es_xsetinfo wcs_chance 85|es_xsetinfo wcs_chance 99"
    "racealias_hitgp23" "es es_xif (event_var(weapon) = knife) then es es_xif (event_var(hitgroup) = 2) then est_damage event_var(attacker) event_var(userid) 50000;es es_xif (event_var(weapon) = knife) then es es_xif (event_var(hitgroup) = 3) then est_damage event_var(attacker) event_var(userid) 50000 then es est_csay event_var(attacker) BACKSTABBED!; es est_csay event_var(userid) YOU GOT BACKSTABBED!!!"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_hitgp23"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_chance 38|es_xsetinfo wcs_chance 46|es_xsetinfo wcs_chance 52|es_xsetinfo wcs_chance 66"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_fallen"
    "racealias_fallen"  "es est_getviewcoord event_Var(userid) wcs_x1 wcs_y1 wcs_z1;es es_delayed 0.5 est_setviewcoord event_var(attacker) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)"
    "racealias_fallenfx""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es est_effect 10 #a 0 sprites/glow.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 100 950 0.2 300 30 0 55 55 55 255 50;es est_effect 10 #a 0.2 sprites/glow.vmt server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 950 100 0.2 300 30 0 55 55 55 255 50"
    "skill3_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_fallenfx"
     
    "skill4_setting"    "0"
    "racealias_togl5"   "es est_restrictall server_var(wcs_userid);es ma_render_fx server_var(wcs_userid) 16;es es_delayed 3 est_setplayercolor server_var(wcs_userid) 255 255 255 0 1;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) freeze 1;es es_xtell server_var(wcs_userid) #multi #lightgreenYou are now #greenInvisible #lightgreenpress ultimate again to become visible"
    "racealias_togl6"   "es est_unrestrictall server_var(wcs_userid);es es_delayed 0.1 es est_unrestrict server_var(wcs_userid) weapon_deagle;es es_delayed 0.4 est_give server_var(wcs_userid) weapon_deagle;es est_setplayercolor server_var(wcs_userid) 255 255 255 255 1;es es_delayed 0.1 ma_render_fx server_Var(wcs_userid) 16;es es_delayed 3 ma_render_fx server_Var(wcs_userid) 0;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) freeze 0"
    "skill4_cmd"        "es_xsetinfo wcs_freeze 0;es es_xkeygetvalue wcs_freeze WCSuserdata server_var(wcs_userid) freeze;es es_xif (server_var(wcs_freeze) = 0) then racealias_togl5;es es_xif (server_var(wcs_freeze) = 1) then racealias_togl6"
    "skill4_sfx"        "0"
    "ultimate_cooldown" "0"
}

Code:
block ctmenu
{   
popup create ctmenu

popup addline ctmenu "Disguise Kit ?Choose The Class You Want To Disguise As."
popup addline ctmenu "Choose Your Counter-Terrorist Model"
popup addline ctmenu "->1. Gign Class"
popup addline ctmenu "->2. GsG9 Class"
popup addline ctmenu "->3. SAS Class"
popup addline ctmenu "->4. Urban Class"
popup timeout ctmenu view 0
es popup send ctmenu server_var(wcs_userid)
popup select ctmenu 1 wcs/WCSultimates/ct1
popup select ctmenu 2 wcs/WCSultimates/ct2
popup select ctmenu 3 wcs/WCSultimates/ct3
popup select ctmenu 4 wcs/WCSultimates/ct4
}
block tmenu
{   
popup create tmenu
popup addline tmenu "Disguise Kit ?Choose The Class You Want To Disguise As."
popup addline tmenu "Choose Your Terrorist Model"
popup addline tmenu "->1. Artic Class"
popup addline tmenu "->2. Phoenix Class"
popup addline tmenu "->3. Leet Class"
popup addline tmenu "->4. Guerilla Class"
popup timeout tmenu view 0
es popup send tmenu server_var(wcs_userid)
popup select tmenu 1 wcs/WCSultimates/t1
popup select tmenu 2 wcs/WCSultimates/t2
popup select tmenu 3 wcs/WCSultimates/t3
popup select tmenu 4 wcs/WCSultimates/t4
}
block t1
{
es est_setmodel event_var(userid) player/t_artic
}
block t2
{
es est_setmodel event_var(userid) player/t_phoenix
}
block t3
{
es est_setmodel event_var(userid) player/t_leet
}
block t4
{
es est_setmodel event_var(userid) player/t_guerilla
}
block ct1
{
es est_setmodel event_var(userid) player/ct_gign
}
block ct2
{
es est_setmodel event_var(userid) player/ct_gsg9
}
block ct3
{
es est_setmodel event_var(userid) player/ct_sas
}
block ct4
{
es est_setmodel event_var(userid) player/ct_urban
}

Skill 1 doesn't pop up when you spawn. 2 doesn't work at all. Also the Ultimate lets me pick up weapons up when i go invisble and chuck them away And I don't know if I go completly invisible because some people can see me and say im partialy invisble. Just enough to know Im there.

Please help
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1586



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: May 05, 2008, 02:38:35 PM »

you named the block wrong 

your skill says
es_xdoblock wcs/WCSultimates/wcs_playermodels

but the block is called
block ctmenu

skill 2 dosent work because you have no ; seperating your commands


es es_xif (event_var(weapon) = knife) then es es_xif (event_var(hitgroup) = 3) then est_damage event_var(attacker) event_var(userid) 50000 then es est_csay event_var(attacker) BACKSTABBED!

if your picking up weapons off the ground when thier restricted you need to put Est_Enable_Weapon_Restrictions 1    in your Es_tools.cfg
itss the weapons that you pic up that people can see
Logged

Gerrard [Jake]
Level 3 Trained Apprentice
***
Offline Offline

Australia Australia

Posts: 77



« Reply #2 on: May 05, 2008, 02:42:17 PM »

how would I make it so it reads all of that block?

soz I have forgotten alot of stuff. Went of wcs for a long time since TF2 came in.
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1586



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #3 on: May 05, 2008, 02:46:09 PM »

its best to make an alias to avoid an if before each command


"skill_cmd"  "es es_xif (event_var(weapon) = knife) then es es_xif (event_var(hitgroup) = 2) then racealias_htgroup2;es es_xif (event_var(weapon) = knife) then es es_xif (event_var(hitgroup) = 3) then racealias_htgroup3"
"racealias_htgroup2" "commands for hit group 2"
"racealias_gtgroup3" "commands for hit group 3"
Logged

Gerrard [Jake]
Level 3 Trained Apprentice
***
Offline Offline

Australia Australia

Posts: 77



« Reply #4 on: May 05, 2008, 02:58:19 PM »

yea but what about skill 1?

Would you be able to fix them up please    

Gota go to bed its 11:14 and I went to bed at 3am last night doing an assignment (got 3 1/2 hours of sleep) so im tired. sorry to be a pain.

<3 HOLLIDAY


Logged
Berettonawak
Level 7 Expert
*****
Offline Offline

France France

Posts: 469


Big Berettonawak is watching you...


WWW
Berettonawak
Berettonawak

myServer 81.93.59.99:30000
(Warning: click connects through Steam)
« Reply #5 on: May 06, 2008, 12:11:57 PM »

Quote
es_xdoblock wcs/WCSultimates/wcs_playermodels
add this block
Code:
block wcs_playermodels
{
if (event_var(es_userteam) = 3) then es_xdoblock wcs/WCSultimates/ctmenu;if (event_var(es_userteam) = 2) then es_xdoblock wcs/WCSultimates/tmenu
}
if you want this to disguise you... then put 2 instead of 3, and 3 instead of 2.

Quote
es popup send ctmenu server_var(wcs_userid)
not an ultimate : use event_var(userid)

Code:
    "racealias_hitgp23" "if (event_var(weapon) in server_var(wcs_wpn_knives)) then if (event_var(hitgroup) = 2) then est_damage event_var(attacker) event_var(userid) 50000;if (event_var(weapon) in server_var(wcs_wpn_knives)) then if (event_var(hitgroup) = 2) then est_damage event_var(attacker) event_var(userid) 50000 then es est_csay event_var(attacker) BACKSTABBED!; es est_csay event_var(userid) YOU GOT BACKSTABBED!!!"

should work
Logged

French Warcraft Coder and Famas Owner...
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1586



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #6 on: May 06, 2008, 03:46:09 PM »

if its player_spawn it should be event_var(userid)   not server_Var(wcs_userid)
Logged

Gerrard [Jake]
Level 3 Trained Apprentice
***
Offline Offline

Australia Australia

Posts: 77



« Reply #7 on: May 07, 2008, 12:11:56 PM »

Wait i'm confused what are you talking about HOLLIDAY and Whats that quote mean Brett? Am I supposed to put that somewhere?

And what about the ultimate?
« Last Edit: May 07, 2008, 12:20:37 PM by Gerrard [Jake] » Logged
Berettonawak
Level 7 Expert
*****
Offline Offline

France France

Posts: 469


Big Berettonawak is watching you...


WWW
Berettonawak
Berettonawak

myServer 81.93.59.99:30000
(Warning: click connects through Steam)
« Reply #8 on: May 07, 2008, 05:05:25 PM »

well there are different words to target the user of the race.
if you make a player_spawn skill, use event_var(userid).
if you make an ultimate, use server_var(wcs_userid)

if you don't add the block i asked you to add, it won't work, cause you want to exec a block that doesnt exist...
Logged

French Warcraft Coder and Famas Owner...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 02:01:38 AM
I got a FAST DL server  - YAY
May 11, 2008, 03:49:05 AM
May 10, 2008, 08:20:44 PM
Add my server to your favorites!
Hey Guys,
Here is my server info. You can link to it through my signature.
Meet me in game and mention this forum for an EXP gift !

Adult community on my server. Custom maps and races OF COURSE!

208.167.243.228:27015
 
All custom and going to be the  mo
May 10, 2008, 03:16:38 AM
Why won't they work? As of 0.8.6 we now even support races that use the WCSuserdata keygroup.

~J3ff
May 10, 2008, 12:52:42 AM
stinky's races won't work and they are played on most servers i think (they rock)
May 10, 2008, 12:52:22 AM
how comes my void will work, yaih? what about stinky's huskar
Recent
[Today at 02:24:50 AM]

[Today at 02:00:04 AM]

[May 11, 2008, 11:48:51 PM]

[May 11, 2008, 11:06:26 PM]

[May 11, 2008, 10:23:59 PM]

[May 11, 2008, 06:55:20 PM]

by Jeff
[May 11, 2008, 06:06:43 PM]

by Jeff
[May 11, 2008, 06:05:22 PM]

[May 11, 2008, 03:29:59 PM]

by Jeff
[May 11, 2008, 03:28:55 PM]
Theme switch

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