Player death skills happen when you die. However, you may set % chances that something will happen when you die, or es_rand commands which is basically like chance. Anything will work, you just need to set it up yourself. For making this skill, you need to have an idea first, such as respawning. It is used a lot, however, can we make this more original you think? Let us take into context the different uses that respawn was used as... basic respawn and respawn and teleport to the place of death. How about this, lets make a race that respawns you and puts you close to a teamate for support. With this, you will need to be a bit more advanced and would have to learn the basics. Well, here is the coding for it... if you feel confused in any way, just please make a post and quote to exactly what in the script that confuses you. Here we are.
{
//skill_cfg = player_death
//Set According to your liking...
"skill1_setting" "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
"racealias_rl" "es_xsetinfo wcs_player 0;es es_xif (server_var(wcs_team) = 2) then est_randplayer wcs_player #t!d;es es_xif (server_var(wcs_team) = 3) then est_randplayer wcs_player #c!d;es es_xexists wcs_exists userid server_var(wcs_player);es es_xif (server_var(wcs_exists) = 1) then racealias_relive"
"racealias_relive" "es est_spawn event_var(userid);es es_xdelayed .1 est_teleport event_var(userid) server_var(wcs_player)"
"skill1_cmd" "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_rl"
"skill1_sfx" "0"
}
(player_kill - Happens when you kill someone)
Player kill skills are just the same as any other skill, just that when you kill someone something happens. Many people like to use this so that on a kill, the person gets more xp or anything else. Well, how is this for a more xp per kill, EARN IT! For this skill, you have a second chance at killing your opponent by respawning them and killing them for extra xp. Here it is, something original for you... be ready, because their aim is set right at you at respawn.
{
//skill_cfg = player_kill
//Set According to your liking...
"skill1_setting" "es_xset wcs_chance 10|es_xset wcs_chance 20|es_xset wcs_chance 30"
"racealias_extra" "es_xgetplayerlocation event_var(userid) wcs_x1 wcs_y1 wcs_z1;es est_spawn event_var(userid);es est_teleport event_var(userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)"
"skill1_cmd" "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_extra"
"skill1_sfx" "0"
}
(player_victim - Happens when someone attacks you)
This type is used for skills such as evade, and etc. Say when a person attacks you, something happens. We have seen people become invisible when attacker, we have seen a person evade a shot when attacked, we have also seen the attacker shaked when they attack them, but have we seen the attacker have a small chance to become disarmed and become a headcrab with only having a knife and extra health and say, "OH LOOK AT THE CUTE LITTLE PET!"? Here we are

{
//skill_cfg = player_victim
//Set According to your liking...
"skill1_setting" "es_xset wcs_chance 10|es_xset wcs_chance 10|es_xset wcs_chance 10"
"racealias_lol" "es est_speed event_var(attacker) 2.0;es est_stripplayer event_var(attacker);es_xdelayed .1 est_restrictall event_var(attacker);es est_setmodel event_var(attacker) headcrab;es_xdelayed .2 est_unrestrict event_var(attacker) weapon_knife;es_xdelayed .3 est_give event_var(attacker) weapon_knife;es est_sethealth event_var(attacker) 300;es est_setplayercolor event_var(attacker) 255 255 255 0 1;es_xdelayed .1 est_setplayercolor event_var(attacker) 255 255 255 255"
"skill1_cmd" "es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_lol"
"skill1_sfx" "0"
}
(player_say - Happens when you say a certain thing)
es_xif (event_var(text) = GROWL) then est_burn #a 3. Lol that is a fun one. Anyways you can use player say for any command you really want to execute, such as burning people. Blocks come in handy if you want to make a menu, but that is your choice. I will discuss blocks on the BLOCKS tutorial. Anyways just remeber to set it as a player_say skill.
(player_ultimate - Happens when you press the ultimate button)
You can do anything with your ultimate, such as make everyone freeze on the map and lose the ability to fire their weapons like as if time stopped. There is a whole bunch of things you can do. The only difference is the ultimate_cooldown line, in which it just sets how long after the first time you used it to use it again. Set it as high or as low as you want. Also, commands change as well in a ultimate command, such as instead of event_var(userid) it becomes server_var(wcs_userid). Just a small change. Everything will be explained more in the coding an ultimate tutorial comming soon.
Now you guys are all set... all of the skills I didn't list was only because after showing you these ideas, the rest you can guess easily at what to do. You will be find and do not worry, I am here to answer questions. Take Care and Code On!
-Zawmbee






United States

Logged



France



