#Example for custom command presentationCommand name: wcs_custom_commandCommand syntax: <userid> <amount> <duration>Command purpose: Serve as an example for the custom command layout
Code: [Select]Command name: wcs_noflashCommand syntax: <userid>Command purpose: There used to be a command that prevented flashbangs and blinding effects in our previous WCS version. The way it worked was first it blocked any flashbang effects, but also upon taking damage it would change the overlay of your screen to 0, meaning you had no overlays, and could not be blinded by other versions of blinds that apply overlays.
Command name: wcs_noflashCommand syntax: <userid>Command purpose: There used to be a command that prevented flashbangs and blinding effects in our previous WCS version. The way it worked was first it blocked any flashbang effects, but also upon taking damage it would change the overlay of your screen to 0, meaning you had no overlays, and could not be blinded by other versions of blinds that apply overlays.
event player_blind{es_keygetvalue wcs_tmp WCSuserdata event_var(userid) noflashif (server_var(wcs_tmp) = 1) do { es_xmath wcs_flashcounter + 1 es_format wcs_flashid "%1%2|" server_var(wcs_flashid) event_var(userid) es_setplayerprop event_var(userid) CCSPlayer.m_flFlashDuration 1 es_setplayerprop event_var(userid) CCSPlayer.m_flFlashMaxAlpha 1 }}
Command name: wcs_healingwardCommand syntax: <userid> Command purpose: To deploy a ward that targets teammates and gives them a regeneration event while within the radius of the ward, similar to how the regeneration even works currently.
Command name: wcs_spawndeadCommand syntax: Command purpose: To actively respawn all dead teammates once per round.
Command name: wcs_aoeCommand syntax: <userid> <radius>Command purpose: To do damage to enemies nearby the target when they receive damage. E.g. When you shoot an enemy there is a chance that you will also deal 10 splash damage to nearby enemies within a certain radius.
Command name: wcs_norecoilCommand syntax: <userid> <duration>Command purpose: To get rid of recoil on a weapon for the duration of the ability.
Command name: wcs_staticCommand syntax: <userid>Command purpose: To track player movement and store the value for use in dealing extra damage. E.g. player runs for 10 seconds = 20 bonus damage on next shot that hits.
Command name: wcs_setresistCommand syntax: <userid> <value> <weapon>Command purpose: wcs_setresist event_var(userid) 0.0 weapon_hegrenadeCommand description: Allows a player to become resistant to a certain weapon by a percentage of damage. Shown above is an example of 100% resistance to hegrenades for the specified userid.
Command name: wcs_setfx falldamageCommand syntax: <userid> <= + -> <value> <duration>Command purpose: wcs_setfx falldamage event_var(userid) = 0.50 0Command description: The specified userid takes less or more damage from falling during the duration. In the example given the player will be taking 50% less damage from falling.
Command name: wcs_setfx ulti_immunityCommand syntax: <userid> <= + -> <value> <duration>Command purpose: wcs_setfx ulti_immunity event_var(userid) = 1 0Command description: This will cause the userid to be immune to all ultimates that have the immunity check implemented. The immunity duration is set to 0 which means the immunity is permanent, in other words till it is changed or the target dies.
Command name: wcs_anticcCommand syntax: <userid> <value on/off> <type>Command purpose: es wcs_anticc event_var(userid) 1 1Command description: This causes the specified userid to become immune to three different types of crowd control. The type parameter allows you to specify which type of CC it shall be immune to. 1 means immunity to slows. 2 means immunity to freezes. Whilst 3 means immunity to stuns.
Command name: wcs_nervegasCommand syntax: <userid> <damage per tick>Command purpose: es wcs_nervegas event_var(userid) 5Command description: Turns the userid's smoke emitted from their smoke grenades into poisonous smoke. Enemies who stands in the smoke will in the example given, take 5 damage each second they remain within the poisonous smoke. The smoke also turns green.
Command name: wcs_auraCommand syntax: <userid of the aura owner> <team for the aura to affect> <radius> <time between ticks> <"command to be executed on every tick">Command purpose: event_var(userid) server_var(wcs_targetid) 200 0.5 "es_wcsdealdamage server_var(wcs_targetid) event_var(userid) 5"Command description: Grants the userid an aura that will affect every player in the targetid filter who are within a 200 game unit range. The aura affects the targets every 0.5 seconds and deals 5 damage to the affected targets.
[[skill1]] setting = "es_xset wcs_count 1;es_xset wcs_params 10_12_200|es_xset wcs_count 1;es_xset wcs_params 12_14_220|es_xset wcs_count 2;es_xset wcs_params 14_16_240|es_xset wcs_count 2;es_xset wcs_params 14_18_260|es_xset wcs_count 3;es_xset wcs_params 14_20_280" cmd = "es wcsgroup set ability event_var(userid) healingwarden;es wcsgroup set ability_count event_var(userid) server_var(wcs_count);es wcsgroup set ability_parameter event_var(userid) server_var(wcs_params);es wcsgroup set ability_cooldown event_var(userid) 3" sfx = ""
[[skill1]] setting = "es_xset wcs_count 1;es_xset wcs_params 10_12_200|es_xset wcs_count 1;es_xset wcs_params 12_14_220|es_xset wcs_count 2;es_xset wcs_params 14_16_240|es_xset wcs_count 2;es_xset wcs_params 14_18_260|es_xset wcs_count 3;es_xset wcs_params 14_20_280" cmd = "es wcsgroup set ability event_var(userid) trap;es wcsgroup set ability_count event_var(userid) server_var(wcs_count);es wcsgroup set ability_parameter event_var(userid) server_var(wcs_params);es wcsgroup set ability_cooldown event_var(userid) 3" sfx = ""
Added:- wcs_noflash <userid> <0/1>- wcs_overlay <userid> <overlay> <duration>- wcs_absorb <userid> <amount>- wcs_setresist <userid> <value> <weapon>- wcs_getcolors <userid> <r> <g> <b> <a>
- Healing ward ability: Player_spawn skill:Code: [Select] [[skill1]] setting = "es_xset wcs_count 1;es_xset wcs_params 10_12_200|es_xset wcs_count 1;es_xset wcs_params 12_14_220|es_xset wcs_count 2;es_xset wcs_params 14_16_240|es_xset wcs_count 2;es_xset wcs_params 14_18_260|es_xset wcs_count 3;es_xset wcs_params 14_20_280" cmd = "es wcsgroup set ability event_var(userid) healingwarden;es wcsgroup set ability_countevent_var(userid) server_var(wcs_count);es wcsgroup set ability_parameter event_var(userid) server_var(wcs_params);es wcsgroup set ability_cooldown event_var(userid) 3" sfx = ""
[[skill1]] setting = "es_xset wcs_count 1;es_xset wcs_params 10_12_200|es_xset wcs_count 1;es_xset wcs_params 12_14_220|es_xset wcs_count 2;es_xset wcs_params 14_16_240|es_xset wcs_count 2;es_xset wcs_params 14_18_260|es_xset wcs_count 3;es_xset wcs_params 14_20_280" cmd = "es wcsgroup set ability event_var(userid) healingwarden;es wcsgroup set ability_countevent_var(userid) server_var(wcs_count);es wcsgroup set ability_parameter event_var(userid) server_var(wcs_params);es wcsgroup set ability_cooldown event_var(userid) 3" sfx = ""
This command should still work with CS:S and propably with CS:GO too. Due to the reason that I'm not too familiar with trace rays in Source Python this command is not one that I planned to remake with Source Python.
[[skill4]] setting = "" cmd = "es playerget viewcoord server_var(wcs_userid) wcs_x1 wcs_y1 wcs_z1;es wcs_teleport server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)" sfx = "" cooldown = "0"