Here is my FINAL work of my race
@Pooky, i might have found the beacon thing, only 1 problem, it might be bugged (player is beaconed for the rest of the round
)
[Deagle Master]
#Requirement section
required = 1750
maximum = 99999
#Restrict section
restrictmap = "awp_toparena"
restrictteam = 0
restrictitem = "mole | tome of health"
teamlimit = 2
#Other info
author = "Deaglegameon"
desc = "The deagle are with you =)"
spawncmd = ""
deathcmd = ""
roundstartcmd = ""
roundendcmd = ""
preloadcmd = ""
allowonly = ""
onchange = ""
#Skill information
numberofskills = 4
numberoflevels = 7
skillnames = "Health and Speed | Deagle Master | Beacon | BOOM!"
skilldescr = "You get Health 25-70 and get really fast | When you hit an enemy with deagle you get 20-40 xp and 120-150 money | Beacon your enemy | you explode on command."
skillcfg = "Player_spawn | player_attacker | player_victim | player_ultimate"
skillneeded = "0|0|4|8"
#Skill specific information
[[skill1]]
setting = "es_xset wcs_speed 1.1 ; es_xset wcs_health 25 | es_xset wcs_speed 1.2 ; es_xset wcs_health 30 | ex_xset wcs_speed 1.3 ; es_xset wcs_health 35 | es_xset wcs_speed 1.4 ; es_xset wcs_health 40 | es_xset wcs_speed 1.5 ; es_xset wcs_health 50 | es_xset wcs_speed 1.55 ; es_xset wcs_health 60 | es_xset wcs_speed 1.6 ; es_xset wcs_health 70"
cmd = "es wcs_setfx speed event_var(userid) = server_var(wcs_speed) 0 ; es wcs_setfx health event_var(userid) = server_var(wcs_health) 0"
sfx = ""
[skill2]
setting = " es_xrand wcs_shamxp 10 15;es_xrand wcs_shamcash 20 30|es_xrand wcs_shamxp 15 20;es_xrand wcs_shamcash 30 45|es_xrand wcs_shamxp 20 25;es_xrand wcs_shamcash 45 60|es_xrand wcs_shamxp 30 35;es_xrand wcs_shamcash 75 100|es_xrand wcs_shamxp 35 40;es_xrand wcs_shamcash 100 150""
racealias_snp2 = “es est_cashadd event_var(attacker) server_var(wcs_shamcash);es wcs_givexp event_var(attacker) server_var(wcs_shamxp) 0 0;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_username) server_var(wcs_sucxp);es es_xtell event_var(attacker) #multi #Lightgreen : You gained #Green server_var(wcs_shamxp) XP #Lightgreen and #Green server_var(wcs_shamcash) $$ #Lightgreen for a Deagle hit;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername);es es_xtell event_var(userid) #multi #Lightgreen : You got hit by a deagle. You gave enemy #Green XP #Lightgreen and #Green $$”
cmd = "es es_xif (event_var(weapon) = deagle) then racealias_snp2""
sfx = ""es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_xmath wcs_z1 + 40;es est_effect 10 #a 0 models/effects/splodecard2_sheet.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 250 190 3 150 100 1 155 115 100 200 3;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es_xmath wcs_z1 + 50;es est_effect 11 #a 0 models/effects/splodecard2_sheet.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 2 2 255"
[[skill3]]
setting = "es_xsetinfo wcs_chance 5|es_xsetinfo wcs_chance 8|es_xsetinfo wcs_chance 12|es_xsetinfo wcs_chance 15|es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 20|es_xsetinfo wcs_chance 23|es_xsetinfo wcs_chance 25"
racealias_mc3 = "es ma_beacon event_var(userid) 1;es es_xtell event_var(attacker) #multi #Lightgreen : You have #Green beaconed enemy;es es_xtell event_var(userid) #multi #Lightgreen : OMG!! You got #Green beaconed. #Lightgreen Hideing wont help.
cmd = "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_IsAlive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_mc3"
"skill3_sfx" "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_effect 3 #a 0 sprites/halo01.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 5 5 132 143 189 255"
[[skill4]]
setting = ""
cmd = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdoblock wcs/tools/ultimates/default/wcs_ulti_suicide"
sfx = " es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 11 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 3 5 255
@ Pooky, could you please improve the sfx of skill 3?
didn't found that anywhere
mvg Noobgameon
@ liquid, to reduce the xp, i had to reduce it in everything, which is at this moment very confusing , and i'm scared i will mess it up