January 17, 2018, 08:05:05 AM

Author Topic: [RACE] Predator  (Read 2904 times)

Offline G3nghis

  • Level 1 Trained Beginner
  • *
  • Posts: 37
  • Country: 00
  • <3 WCS :)
[RACE] Predator
« on: March 27, 2011, 10:56:33 PM »
Here is my first race for the community. It uses a variation of the wallhack ability Kamikawa made, based more on Hollidays version. I recommend the predator skin for a cool effect and experience (invisibility plus green blood when shot) otherwise you can use normal invisibility.

Here is the skin: http://s-low.info/forum/viewtopic.php?f=8&t=49
add this to the spawncmd for the skin:
Code: [Select]
es playerset model event_var(userid) models/player/slow/predator_xp/predator_xp
or add this to the spawncmd if you dont use the skin
Code: [Select]
es wcs_setfx invisp event_var(userid) = 80 0
Code: [Select]
[Predator]
   #Requirement section
   required           = 0
   maximum            = 0

   #Restrict section
   restrictmap        = ""
   restrictteam       = 0
   restrictitem       = ""

   #Other info
   author             = "G3nghis"
   desc               = "Alien vs Predator"
   spawncmd           = "es wcs_restrict event_var(userid) knife"
   deathcmd           = ""
   roundstartcmd      = ""
   roundendcmd        = ""
   preloadcmd         = ""
   allowonly          = ""
   onchange           = ""

   #Skill information
   numberofskills     = 5
   numberoflevels     = 5
   skillnames         = "Regenerative Skin|Super Strength|Agile|Eat your victim|Infrared Vision"
   skilldescr         = "Restore health after 3 seconds|Extra Damage|Low grav+Speed|Gain health for each kill|Locate enemies from far away"
   skillcfg           = "player_victim|player_attacker|player_spawn|player_kill|player_ultimate"
   skillneeded        = "0|0|0|0|0"
   
   #Skill specific information
   [[skill1]]
    setting             = "es_xset wcs_chance 30|es_xset wcs_chance 35|es_xset wcs_chance 40|es_xset wcs_chance 45|es_xset wcs_chance 50"     
    cmd                 = "if (server_var(wcs_dice) <= server_var(wcs_chance)) then wcsx get isdead wcs_dead event_var(userid);if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_dead) = 0) then wcs_xalias racealias_pred11"
    racealias_pred11    = "es_set wcs_dmg event_var(dmg_health);es_delayed 3 wcs_setfx health event_var(userid) + event_var(dmg_health);wcs_xalias racealias_pred12"
    racealias_pred12    = "es_delayed 3 es_tell event_var(userid) #multi #lightgreen HEALING #default:#green You recovered from #lightgreen event_var(es_attackername) #greenattacks"
    sfx                 = "" 
     
   [[skill2]]
      setting           = "es_xset wcs_multiplier 0.4|es_xset wcs_multiplier 0.5|es_xset wcs_multiplier 0.6|es_xset wcs_multiplier 0.7|es_xset wcs_multiplier 0.8"
      racealias_pred21  = "es_set wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es_math wcs_dmg * server_var(wcs_multiplier);es wcs_decimal wcs_dmg server_var(wcs_dmg);wcs_xalias racealias_pred22"
      racealias_pred22  = "es wcs damage event_var(userid) event_var(attacker) server_var(wcs_dmg);es_tell event_var(attacker) #multi #green: #lightgreenYou did#default server_var(wcs_dmg)#lightgreen extra damage...."
      cmd               = "if (event_var(weapon) = knife) then es_xif (event_var(es_userdead) = 0) then wcs_xalias racealias_pred21"
      sfx               = "es_playsound event_var(userid) npc/roller/mine/rmine_blades_out2.wav 1;es_playsound event_var(attacker) npc/roller/mine/rmine_blades_out2.wav 1"
     
   [[skill3]]
      setting        = "es_xset wcs_grav .9;es_xset wcs_spd 1.1|es_xset wcs_grav .8;es_xset wcs_spd 1.2|es_xset wcs_grav .7;es_xset wcs_spd 1.3|es_xset wcs_grav .6;es_xset wcs_spd 1.4|es_xset wcs_grav .5;es_xset wcs_spd 1.5"
      cmd            = "es wcs_setfx gravity event_var(userid) = server_var(wcs_grav) 0;es wcs_setfx speed event_var(userid) = server_var(wcs_spd) 0"
      sfx            = ""
     
   [[skill4]]
      setting    = "es_xrand wcs_rand 5 10|es_xrand wcs_rand 10 15|es_xrand wcs_rand 15 20|es_xrand wcs_rand 20 25|es_xrand wcs_rand 25 30"
      cmd        = "es wcs_setfx health event_var(attacker) + server_var(wcs_rand) 0;es wcs_xtell event_var(attacker) i_bookofcannibal rand server_var(wcs_rand)"
      sfx        = ""

   [[skill5]]
      setting =       "es_xset wcs_time 4|es_xset wcs_time 6|es_xset wcs_time 8|es_xset wcs_time 10|es_xset wcs_time 12"
      cmd =          "es_xdoblock walls/wallhacking"
      sfx =          ""
      cooldown =     "25"

And the block for the wallhack effect. paste into eventscripts/walls/es_walls.txt then load walls.

Code: [Select]
block wallhacking
{
  es_set iduser server_var(wcs_userid)
  es_playsound server_var(iduser) items/nvg_on.wav 1
  es_cexec server_var(iduser) r_screenoverlay effects/combine_binocoverlay.vmt
  es_getplayerteam wcs_team server_var(iduser)
  es_getplayerlocation wcs_x3 wcs_y3 wcs_z3 server_var(iduser)
      es repeat create wallhack "es_xdoblock walls/wallhackon"
  es repeat start wallhack .1
  es_delayed server_var(wcs_time) es repeat stop wallhack
  es_delayed server_var(wcs_time) es repeat delete wallhack
  es_delayed server_var(wcs_time) es_playsound server_var(iduser) items/nvg_off.wav
  es_delayed server_var(wcs_time) es_cexec server_var(iduser) r_screenoverlay 0
          es_tell server_var(iduser) #multi #lightgreenYou Have Infrared Vision for #green server_var(wcs_time) Seconds
  }
}

block wallhackon
{
if(server_var(wcs_team) = 2) do
{
es wcs_nearcoord targetid #ct,#alive server_var(wcs_x3) server_var(wcs_y3) server_var(wcs_z3) 20000 "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 33;es_createvectorstring wcs_v1 server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);if (server_var(targetid) != server_var(iduser)) then es_xdoblock walls/walleffect2"
}

if(server_var(wcs_team) = 3) do
      {
es wcs_nearcoord targetid #t,#alive server_var(wcs_x3) server_var(wcs_y3) server_var(wcs_z3) 20000 "es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(targetid);es_xmath wcs_z1 + 33;es_createvectorstring wcs_v1 server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);if (server_var(targetid) != server_var(iduser)) then es_xdoblock walls/walleffect1"
    }
}

block walleffect1
{
  es est_effect 11 server_var(iduser) 0 VGUI\gfx\VGUI\arctic.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) .2 .3 255
  es est_effect 11 server_var(iduser) 0 effects/redflare.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) .2 3 10
}

block walleffect2
{
  es est_effect 11 server_var(iduser) 0 VGUI\gfx\VGUI\gign.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) .2 .3 255
  es est_effect 11 server_var(iduser) 0 effects/redflare.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) .2 3 10
}

Wallhack
http://cloud.steampowered.com/ugc/594680945416885086/0A6950E0FB13D8A9D11648B2D8A580649416FA21/

Skin
http://cloud.steampowered.com/ugc/594680945416844541/799A67D26F5F9AAF806F8FD9C058260D3188199C/
(The low FPS is due to the crappy laptop I was on :P)

My next mission is Alien so if you guys like this Ill release that too when its done :). Comments are appreciated
« Last Edit: March 27, 2011, 10:59:22 PM by G3nghis »

Offline AmaTeK

  • Level 6 Experienced
  • *****
  • Posts: 133
  • Country: 00
  • <3 WCS :) Oh Yeah !! I like it
Re: [RACE] Predator
« Reply #1 on: March 27, 2011, 11:31:18 PM »
I love your idea of race, but I want to properly install the skin, where do I put what is in "Gameserver" and "Downloadserver.
Sorry for my English, I'm French !! ^^

Offline G3nghis

  • Level 1 Trained Beginner
  • *
  • Posts: 37
  • Country: 00
  • <3 WCS :)
Re: [RACE] Predator
« Reply #2 on: March 27, 2011, 11:51:21 PM »
I figured using the models would be a challenge for some. Thats why I gave the alternative of using regular invisibility.
For the skin installation, if you have access to a fastDL server, ie your redirect server, you can upload the "downloadserver" files to the redirect server otherwise just upload the "gameserver" files to your server. Then if you dont have a skin manager. Download this plugin (This is what I use but you can use something else): https://forums.alliedmods.net/showthread.php?t=103553 and set that up with the correct file paths to the materials and models for everyone to download when they connect to your server. Hopefully that helps.

That is how I use skins. Not sure if there is a better method of handling skins. If there is please tell me.
« Last Edit: March 27, 2011, 11:56:52 PM by G3nghis »

Offline AmaTeK

  • Level 6 Experienced
  • *****
  • Posts: 133
  • Country: 00
  • <3 WCS :) Oh Yeah !! I like it
Re: [RACE] Predator
« Reply #3 on: March 29, 2011, 10:34:00 PM »
I use the "SM Downloader v1.4" for to download on my dedicated server, he's work !!

is it enough?

with "SM downloader v1.4" I managed to operate the skin, I just forgot to transfer any folder, I've found using "Source SDK" it lacked files.

I added your race at my server, unfortunately the wallhack and regeneration do not work
« Last Edit: March 30, 2011, 07:19:45 PM by AmaTeK »
Sorry for my English, I'm French !! ^^

Offline Kamiqawa

  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 784
  • Country: fi
Re: [RACE] Predator
« Reply #4 on: March 30, 2011, 05:19:32 PM »
Looking very nice!

I can't test it right now, but I will do that later.

@AmaTeK, did you correctly install and load that wallhack (es_load wall)?

Thanks.
Want your own custom color for your forum username? No worries! La Muerte is here ready to fulfill your every rainbow-colored wish!

As a special offer of the day you can go talk with Tha Pwned first, and come ahead of the line!

I AM PINK!


Offline AmaTeK

  • Level 6 Experienced
  • *****
  • Posts: 133
  • Country: 00
  • <3 WCS :) Oh Yeah !! I like it
Re: [RACE] Predator
« Reply #5 on: March 30, 2011, 07:00:14 PM »
yes, I have properly install the race and added "es_load walls" in autoexec. cstrike/addons/eventscripts/walls is the installation path.
my server "Linux" ask myself a lot of problem. Full as to race I would have liked to have on my server, are doing crash he or the effects that do not work.
Sorry for my English, I'm French !! ^^

Offline DABASS

  • Level 7 Expert
  • *****
  • Posts: 532
  • Country: ru
Re: [RACE] Predator
« Reply #6 on: March 30, 2011, 07:03:05 PM »
all works fine))))))))) THX

Offline AmaTeK

  • Level 6 Experienced
  • *****
  • Posts: 133
  • Country: 00
  • <3 WCS :) Oh Yeah !! I like it
Re: [RACE] Predator
« Reply #7 on: March 30, 2011, 07:26:04 PM »
i have use this: http://check.eventscripts.com/ for control "es_block" and fix error before to add to my server, but don't work...

@Kamiqawa: thx ;)
Sorry for my English, I'm French !! ^^

Offline G3nghis

  • Level 1 Trained Beginner
  • *
  • Posts: 37
  • Country: 00
  • <3 WCS :)
Re: [RACE] Predator
« Reply #8 on: March 31, 2011, 02:41:55 AM »
@ amatek: I have a linux server and I test extensively before releasing my races to the server so I know it should work. The regeneration works by restoring health if you take damage. I didnt use the wcs regeneration command and its based on chance so maybe it didnt restore because of the chance. Dont want a race to be too OP :P. Also if you created es_walls.txt in the right folder and loaded it with es_load walls, it should work. Maybe you forgot something on your end?

@ dabass: I actually think I have a better implementation of a blackhole. Kamikawas BH is meh... Sorry bud :). If i get enough time to get to it, Ill work on that too. Dont really know what race it would go on though.....maybe a recreation of TC's Silver Surfer.

@ With 160+ views its either a popular race or people are reading the threads. In either case Ill probably go on and create an Alien to complement this race.

edit: @ Kamiqawa: I also add a thumbs down for Impact's useless reply lol
« Last Edit: March 31, 2011, 02:47:47 AM by G3nghis »

Offline Lukas320

  • Level 7 Expert
  • *****
  • Posts: 471
  • Country: be
  • <3 WCS :)
Re: [RACE] Predator
« Reply #9 on: March 31, 2011, 10:45:15 AM »
You should delete the wallhack terror/ct pictures and just let the flares in it.
So if it's CT you see blue flare and when it's T it's red flare.
Cuz these pictures are annoying

Offline AmaTeK

  • Level 6 Experienced
  • *****
  • Posts: 133
  • Country: 00
  • <3 WCS :) Oh Yeah !! I like it
Re: [RACE] Predator
« Reply #10 on: April 01, 2011, 06:53:38 PM »
Yes, it's good!! the ultimate work
in fact, I misnamed the file "es_walls.txt" I had named "es_wallhack.txt"

sorry for the inconvenience!
« Last Edit: April 01, 2011, 11:15:48 PM by AmaTeK »
Sorry for my English, I'm French !! ^^

Offline Player3

  • Level 4 Intermediate
  • ****
  • Posts: 94
  • A.F.K.*
Re: [RACE] Predator
« Reply #11 on: January 08, 2012, 07:02:58 PM »
The ultimate isnt working for me, but i guess this is because its outdated now?
Or should it still work?