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 2013-04-03 (original capture). Home · Forum · All archived topics · Downloads
April 03, 2013, 08:09:03 AM

Author Topic: [Skill Catalog] General Functions  (Read 2941 times)

Offline La Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1733
  • Carry On Wayward Son
    • Counterstrike Combat Crew
[Skill Catalog] General Functions
« on: May 15, 2011, 11:58:06 AM »
Skills/ Functions Part 1:

-----------------------------------------------------------------------------------------------------------------------------------------------

Useable SkillCFG's: "player_attacker" "player_death" "player_kill" "player_say" "player_spawn" "player_victim" "player_hurt" "player_ultimate" "player_ability"

Note: player_hurt, player_kill and player_say are disabled by default. To change it, set wcs_cfg_allow_<event> eg. wcs_cfg_allow_player_say to 1


Race Structure:
Show content
Code: [Select]
[race name]
required           = 0
maximum            = 0

restrictmap        = "map1|map2..."
restrictteam       = CT
restrictitem       = "item1|item2..."
teamlimit          = 0

author             = "your name"
desc               = "description"
spawncmd           = ""
deathcmd           = ""
roundstartcmd      = ""
roundendcmd        = ""
preloadcmd         = ""

allowonly          = "ADMINS|STEAM_0:1:13179199|"
onchange           = ""

numberofskills     = 4
numberoflevels     = 4
skillnames         = "name1|name2|name3|name4"
skilldescr         = "text1|text2|text3|text4"
skillcfg           = "cfg1|cfg2|cfg3|cfg4"
skillneeded        = "neededlevel1|neededlevel2|neededlevel3|neededlevel4"


[[skill1]]
setting        = "setvar1|setvar2|setvar3|setvar4"
cmd            = "es do this with my var, max character lenght of this line is 512"
sfx            = ""

[[skill2]]
setting        = "setvar1|setvar2|setvar3|setvar4"
cmd            = ""
sfx            = ""

[[skill3]]
setting        = "setvar1|setvar2|setvar3|setvar4"
cmd            = "es wcs_xalias racealias abcftw"
racealias_abcftw   = "the rest of my cmd goes here"
sfx            = ""

[[skill4]]
setting        = "setvar1|setvar2|setvar3|setvar4"
cmd            = ""
sfx            = ""
cooldown       = "4"

Skill Structure:
Show content
Code: [Select]
[[skill3]]
setting = "0|0|0|0"
racealias_oh3 = ""
racealias_oh3a = ""
cmd = "wcs_xalias racealias_oh3;wcs_xalias racealias_oh3a"
sfx = ""
cooldown = "30"




Color:
Show content
COLOR:
Code: [Select]
wcs_color <red> <green> <blue> <alpha> [weapon]    (alpha = visibility, weapon means weapon colored too or not)

So, "es wcs_color 255 255 255 0 1" - Means that you have invisible player and his weapons,

and "es wcs_color 255 255 255 255 1" - Means that you have visible player and his weapons again.

Code: [Select]
Black: 20 20 20
White:  21 21 21
Green:  0 255 0
Blue :  0 0 255
Red  :  255 0 0
Yellow:  255 227 70
Orange:  255 110 35

Full Colour List:
Show content
Code: [Select]
Almond - 239, 222, 205
Antique Brass - 205, 149, 117
Apricot - 253, 217, 181
Aquamarine - 120, 219, 226
Asparagus - 135, 169, 107
Atomic Tangerine - 250, 231, 181
Beaver - 159, 129, 112
Bittersweet - 253, 124, 110
Blizzard Blue - 172, 229, 238
Blue - 31, 117, 254
Blue Bell - 162, 162, 208
Blue Gray - 102, 153, 204
Blue Green - 13, 152, 186
Blue Violet - 115, 102, 189
Blush - 222, 93, 131
Brick Red - 203, 65, 84
Brown - 180, 103, 77
Burnt Orange - 255, 127, 73
Burnt Sienna - 234, 126, 93
Cadet Blue - 176, 183, 198
Canary - 255, 255, 153
Caribbean Green - 28, 211, 162
Carnation Pink - 255, 170, 204
Cerise - 221, 68, 146
Cerulean - 29, 172, 214
Chestnut - 188, 93, 88
Copper - 221, 148, 117
Cornflower - 154, 206, 235
Cotton Candy - 255, 188, 217
Dandelion - 253, 219, 109
Denim - 43, 108, 196
Desert Sand - 239, 205, 184
Eggplant - 110, 81, 96
Electric Lime - 206, 255, 29
Fern - 113, 188, 120
Forest Green - 109, 174, 129
Fuchsia - 195, 100, 197
Fuzzy Wuzzy - 204, 102, 102
Gold - 231, 198, 151
Goldenrod - 252, 217, 117
Granny Smith Apple - 168, 228, 160
Gray - 149, 145, 140
Green - 28, 172, 120
Green Blue - 17, 100, 180
Green Yellow - 240, 232, 145
Hot Magenta - 255, 29, 206
Inchworm - 178, 236, 93
Indigo - 93, 118, 203
Jazzberry Jam - 202, 55, 103
Jungle Green - 59, 176, 143
Laser Lemon - 254, 254, 34
Lavender - 252, 180, 213
Lemon Yellow - 255, 244, 79
Macaroni and Cheese - 255, 189, 136
Magenta - 246, 100, 175
Magic Mint - 170, 240, 209
Mahogany - 205, 74, 76
Maize - 237, 209, 156
Manatee - 151, 154, 170
Mango Tango - 255, 130, 67
Maroon - 200, 56, 90
Mauvelous - 239, 152, 170
Melon - 253, 188, 180
Midnight Blue - 26, 72, 118
Mountain Meadow - 48, 186, 143
Mulberry - 197, 75, 140
Navy Blue - 25, 116, 210
Neon Carrot - 255, 163, 67
Olive Green - 186, 184, 108
Orange - 255, 117, 56
Orange Red - 255, 43, 43
Orange Yellow - 248, 213, 104
Orchid - 230, 168, 215
Outer Space - 65, 74, 76
Outrageous Orange - 255, 110, 74
Pacific Blue - 28, 169, 201
Peach - 255, 207, 171
Periwinkle - 197, 208, 230
Piggy Pink - 253, 221, 230
Pine Green - 21, 128, 120
Pink Flamingo - 252, 116, 253
Pink Sherbert - 247, 143, 167
Plum - 142, 69, 133
Purple Heart - 116, 66, 200
Purple Mountain's Majesty 157, 129, 186
Purple Pizzazz - 254, 78, 218
Radical Red - 255, 73, 108
Raw Sienna - 214, 138, 89
Raw Umber - 113, 75, 35
Razzle Dazzle Rose - 255, 72, 208
Razzmatazz - 227, 37, 107
Red - 238, 32, 77
Red Orange - 255, 83, 73
Red Violet - 192, 68, 143
Robin Egg Blue - 31, 206, 203
Royal Purple - 120, 81, 169
Salmon - 255, 155, 170
Scarlet - 252, 40, 71
Screamin' Green - 118, 255, 122
Sea Green - 159, 226, 191
Sepia - 165, 105, 79
Shadow - 138, 121, 93
Shamrock - 69, 206, 162
Shocking Pink - 251, 126, 253
Silver - 205, 197, 194
Sky Blue - 128, 218, 235
Spring Green - 236, 234, 190
Sunglow - 255, 207, 72
Sunset Orange - 253, 94, 83
Tan - 250, 167, 108
Teal Blue - 24, 167, 181
Thistle - 235, 199, 223
Tickle Me Pink - 252, 137, 172
Timberwolf - 219, 215, 210
Tropical Rain Forest - 23, 128, 109
Tumbleweed - 222, 170, 136
Turquoise Blue - 119, 221, 231
Unmellow Yellow - 255, 255, 102
Violet Purple - 146, 110, 174
Violet Blue - 50, 74, 178
Violet Red - 247, 83, 148
Vivid Tangerine - 255, 160, 137
Vivid Violet - 143, 80, 157
White - 255, 255, 255
Wild Blue Yonder - 162, 173, 208
Wild Strawberry - 255, 67, 164
Wild Watermelon - 252, 108, 133
Wisteria - 205, 164, 222
Yellow - 252, 232, 131
Yellow Green - 197, 227, 132
Yellow Orange - 255, 174, 66




Restrict:
Show content
syntax: wcs_restrict <userid> allow <weapon> <give> <knife>
Code: [Select]
es wcs_restrict event_var(userid) allow weapon_elite 1 1=> first 1 means you give weapon, second 1 means knife is allowed, nades are allowed by default

Code: [Select]
es wcs_restrict event_var(userid) allow weapon_m3 1;es wcs_restrict event_var(userid) addallow weapon_usp;es_delayed 0.1 es_xgive event_var(userid) weapon_usp=> you get the m3, knife is restricted, you add allow to usp and then still need to give usp

Skins/ Models:
Show content
Code: [Select]
spawncmd =  "es playerset model event_var(userid) props_c17/oildrum001;es_tell event_var(userid) You are barrel now!?" LOWER CASE LETTERS ONLY
Code: [Select]
///List of HL2 Skins: Require NO download
///
///Creatures
- combine_strider
- crow
- headcrab   
- headcrabblack 
- headcrabclassic
- ichthyosaur
- manhack
- mortarsynth
- pigeon
- seagull
- synth
- stalker
- lamarr
- roller
- advisor
- antlion_guard
- barnacle
- effects\combineball
- humans\corpse1

///Machines
- gunship
- buggy
- combine_helicopter

///Humans
- alyx
- combine_soldier
- combine_soldier_prisonguard
- monk
- odessa
- soldier_stripped
- humans\group03m\female_01

Note: there are more HL2 models available for usage: you can find them with the Model Viewer in the SDK tool,
however not all models will work and some (specially those with fast animations) will crash your server.

Sounds:
Show content
Code: [Select]
es_emitsound player <target> <sound> <volume> <attenuation>
Example: es_emitsound player event_var(userid)  vo/npc/male01/letsgo02.wav 1.0 0.5

or another command (used differently):
Code: [Select]
es_cexec server_var(wcs_userid) play weapons/357/357_spin1.wav

Tell:
Show content
Code: [Select]
es_tell event_var(userid) #multi #green[#lightgreenYOURSKILLNAME#green] #defaultYOURSKILLDESCRIPTION

Weapons:
Show content
Code: [Select]
wcs_give weapon_ak47
Here is a list of all the weapons:
Code: [Select]
- galil
- ak47
- scout
- sg552
- awp
- g3sg1
- famas
- m4a1
- aug
- sg550
- glock
- usp
- p228
- deagle
- elite
- fiveseven
- m3
- xm1014
- mac10
- tmp
- mp5navy
- ump45
- p90
- m249
- primammo
- secammo
- vest
- vesthelm
- flashbang
- hegrenade
- smokegrenade
- nvgs
- defuser
« Last Edit: January 05, 2013, 02:40:58 PM by Predz »
All you need is GTXGaming         
             Recommended by La Muerte

Offline La Muerte

  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1733
  • Carry On Wayward Son
    • Counterstrike Combat Crew
Re: [Skill Catalog] General Functions
« Reply #1 on: May 15, 2011, 12:10:39 PM »
Reserved.
All you need is GTXGaming         
             Recommended by La Muerte

Offline Masteraviv13

  • Level 7 Expert
  • *****
  • Posts: 307
  • Python remains a bitch, though I will never quit
    • <a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing</a>]<a href="http://alwaysfunkilling.com" title="An evolution of modern combat">Always Fun Killing<
Re: [Skill Catalog] General Functions
« Reply #2 on: January 13, 2012, 01:44:58 PM »
I must say,

La Muerte,
thumps up!!

one of the most usefull topics I read the last week =-)




Offline candybear

  • Level 2 Apprentice
  • **
  • Posts: 48
  • <3 WCS :)
Re: [Skill Catalog] General Functions
« Reply #3 on: January 04, 2013, 06:43:27 PM »



Color:
Show content
COLOR:
Code: [Select]
wcs_color <red> <green> <blue> <alpha> [weapon]    (alpha = visibility, weapon means weapon colored too or not)

So, "es wcs_color 255 255 255 0 1" - Means that you have invisible player and his weapons,

and "es wcs_color 255 255 255 255 1" - Means that you have visible player and his weapons again.


Code: [Select]
Black: 20 20 20
White:  21 21 21
Green:  0 255 0
Blue :  0 0 255
Red  :  255 0 0
Yellow:  255 227 70
Orange:  255 110 35

[spoiler= Full color list]
Code: [Select]
Almond - 239, 222, 205
Antique Brass - 205, 149, 117
Apricot - 253, 217, 181
Aquamarine - 120, 219, 226
Asparagus - 135, 169, 107
Atomic Tangerine - 250, 231, 181
Beaver - 159, 129, 112
Bittersweet - 253, 124, 110
Blizzard Blue - 172, 229, 238
Blue - 31, 117, 254
Blue Bell - 162, 162, 208
Blue Gray - 102, 153, 204
Blue Green - 13, 152, 186
Blue Violet - 115, 102, 189
Blush - 222, 93, 131
Brick Red - 203, 65, 84
Brown - 180, 103, 77
Burnt Orange - 255, 127, 73
Burnt Sienna - 234, 126, 93
Cadet Blue - 176, 183, 198
Canary - 255, 255, 153
Caribbean Green - 28, 211, 162
Carnation Pink - 255, 170, 204
Cerise - 221, 68, 146
Cerulean - 29, 172, 214
Chestnut - 188, 93, 88
Copper - 221, 148, 117
Cornflower - 154, 206, 235
Cotton Candy - 255, 188, 217
Dandelion - 253, 219, 109
Denim - 43, 108, 196
Desert Sand - 239, 205, 184
Eggplant - 110, 81, 96
Electric Lime - 206, 255, 29
Fern - 113, 188, 120
Forest Green - 109, 174, 129
Fuchsia - 195, 100, 197
Fuzzy Wuzzy - 204, 102, 102
Gold - 231, 198, 151
Goldenrod - 252, 217, 117
Granny Smith Apple - 168, 228, 160
Gray - 149, 145, 140
Green - 28, 172, 120
Green Blue - 17, 100, 180
Green Yellow - 240, 232, 145
Hot Magenta - 255, 29, 206
Inchworm - 178, 236, 93
Indigo - 93, 118, 203
Jazzberry Jam - 202, 55, 103
Jungle Green - 59, 176, 143
Laser Lemon - 254, 254, 34
Lavender - 252, 180, 213
Lemon Yellow - 255, 244, 79
Macaroni and Cheese - 255, 189, 136
Magenta - 246, 100, 175
Magic Mint - 170, 240, 209
Mahogany - 205, 74, 76
Maize - 237, 209, 156
Manatee - 151, 154, 170
Mango Tango - 255, 130, 67
Maroon - 200, 56, 90
Mauvelous - 239, 152, 170
Melon - 253, 188, 180
Midnight Blue - 26, 72, 118
Mountain Meadow - 48, 186, 143
Mulberry - 197, 75, 140
Navy Blue - 25, 116, 210
Neon Carrot - 255, 163, 67
Olive Green - 186, 184, 108
Orange - 255, 117, 56
Orange Red - 255, 43, 43
Orange Yellow - 248, 213, 104
Orchid - 230, 168, 215
Outer Space - 65, 74, 76
Outrageous Orange - 255, 110, 74
Pacific Blue - 28, 169, 201
Peach - 255, 207, 171
Periwinkle - 197, 208, 230
Piggy Pink - 253, 221, 230
Pine Green - 21, 128, 120
Pink Flamingo - 252, 116, 253
Pink Sherbert - 247, 143, 167
Plum - 142, 69, 133
Purple Heart - 116, 66, 200
Purple Mountain's Majesty 157, 129, 186
Purple Pizzazz - 254, 78, 218
Radical Red - 255, 73, 108
Raw Sienna - 214, 138, 89
Raw Umber - 113, 75, 35
Razzle Dazzle Rose - 255, 72, 208
Razzmatazz - 227, 37, 107
Red - 238, 32, 77
Red Orange - 255, 83, 73
Red Violet - 192, 68, 143
Robin Egg Blue - 31, 206, 203
Royal Purple - 120, 81, 169
Salmon - 255, 155, 170
Scarlet - 252, 40, 71
Screamin' Green - 118, 255, 122
Sea Green - 159, 226, 191
Sepia - 165, 105, 79
Shadow - 138, 121, 93
Shamrock - 69, 206, 162
Shocking Pink - 251, 126, 253
Silver - 205, 197, 194
Sky Blue - 128, 218, 235
Spring Green - 236, 234, 190
Sunglow - 255, 207, 72
Sunset Orange - 253, 94, 83
Tan - 250, 167, 108
Teal Blue - 24, 167, 181
Thistle - 235, 199, 223
Tickle Me Pink - 252, 137, 172
Timberwolf - 219, 215, 210
Tropical Rain Forest - 23, 128, 109
Tumbleweed - 222, 170, 136
Turquoise Blue - 119, 221, 231
Unmellow Yellow - 255, 255, 102
Violet Purple - 146, 110, 174
Violet Blue - 50, 74, 178
Violet Red - 247, 83, 148
Vivid Tangerine - 255, 160, 137
Vivid Violet - 143, 80, 157
White - 255, 255, 255
Wild Blue Yonder - 162, 173, 208
Wild Strawberry - 255, 67, 164
Wild Watermelon - 252, 108, 133
Wisteria - 205, 164, 222
Yellow - 252, 232, 131
Yellow Green - 197, 227, 132
Yellow Orange - 255, 174, 66
[/spoiler]   <--- remove


do that ^ then remove this post also ;D