December 14, 2017, 09:40:20 PM

Author Topic: [Race] Xenomorph (Public Edition)  (Read 1449 times)

Offline Naiken

  • Level 7 Expert
  • *****
  • Posts: 223
  • Country: gb
  • Languages: ESS, SQF
[Race] Xenomorph (Public Edition)
« on: August 02, 2012, 12:02:02 AM »
Hi guys, this is my first contribution, this race is a xenomorph from the Alien movies, This version is slightly different from the one on our server but i adapted it quickly into public form. All files required for this races are available to download:
DOWNLOAD NEW SOUNDPACK

Model Download:
DOWNLOAD S-LOW ALIEN MODEL

This includes instructions, models, materials and sounds for this race.
I did not make the model(s) / Material(s) the credit goes to s-low for that, and the sounds are from AVP's Newest Game ^^ Hope you enjoy (hope it works lol)

Also make sure you have sm_downloader or something similar for content download / precache on your server.


Code: [Select]
[Xenomorph (Knife Race)]
#Requirement section
required           = 0
maximum            = 0

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

#Other info
author             = "Naiken [TFG Team]"
desc               = "hp,lifesteal,speed,damage & shake,teleport"
spawncmd           = "es wcs_restrict event_var(userid) all;es wcs_unrestrict event_var(userid) knife;es_xdoblock wcs/addons/effect/xenomorph_spawn;es_xdoblock wcs/addons/effect/AntiFallDamage"
deathcmd           = "es_xdoblock wcs/addons/effect/xenomorph_death"
roundstartcmd      = ""
roundendcmd        = ""
preloadcmd         = ""
allowonly          = ""
onchange           = "es wcs_unrestrict server_var(wcs_userid) all;es es_stopsound event_var(userid) naiken/xenomorph/xenomorph_breathing.wav"
racecategory       = "" 

#Skill information
numberofskills     = 5
numberoflevels     = 8
skillnames         = "Hardened Carapace|Devour|Serpent Agility|Ferociousness|Leap"
skilldescr         = "Extra HP & Armour|Life Steal|Extra Speed|Attack Aggression & Shake|Leap at your Foes"
skillcfg           = "player_spawn|player_attacker|player_spawn|player_attacker|player_ultimate"
skillneeded        = "0|0|0|0|0"

#Skill specific information
[[skill1]]
setting        = "es_xset wcs_addhealth 5;es_xset wcs_addarmor 15|es_xset wcs_addhealth 10;es_xset wcs_addarmor 20|es_xset wcs_addhealth 15;es_xset wcs_addarmor 25|es_xset wcs_addhealth 20;es_xset wcs_addarmor 30|es_xset wcs_addhealth 25;es_xset wcs_addarmor 35|es_xset wcs_addhealth 35;es_xset wcs_addarmor 40|es_xset wcs_addhealth 50;es_xset wcs_addarmor 45|es_xset wcs_addhealth 75;es_xset wcs_addarmor 75"
               cmd            = "es wcs_setfx health event_var(userid) + server_var(wcs_addhealth) 0;es wcs_setfx armor event_var(userid) + server_var(wcs_addarmor) 0;es_tell server_var(wcs_userid) #multi #green[#defaultXenomorph Carapace#green] #lightgreenIncreased Health by server_var(wcs_addhealth), and Armour by server_var(wcs_addarmor)"
               sfx            = ""

[[skill2]]
setting        = "es_xset wcs_divider 9|es_xset wcs_divider 9|es_xset wcs_divider 8|es_xset wcs_divider 8|es_xset wcs_divider 7|es_xset wcs_divider 7|es_xset wcs_divider 6|es_xset wcs_divider 5"
racealias_xenomorph2  = "es_set wcs_dmg event_var(dmg_health);if (server_var(wcs_game) == dod) then es_xset wcs_dmg event_var(damage);es_xmath wcs_dmg float;es_math wcs_dmg / server_var(wcs_divider);es wcs_decimal wcs_dmg server_var(wcs_dmg);es wcs_setfx health event_var(attacker) + server_var(wcs_dmg) 0;es wcs_xcentertell event_var(attacker) c_leeched_a dmg server_var(wcs_dmg);es wcs_xcentertell event_var(userid) c_leeched_v dmg server_var(wcs_dmg)"
cmd            = "if (server_var(wcs_dice) <= 100) then wcs_xalias racealias_xenomorph2"
sfx            = "if (server_var(wcs_dice) <= 100) then es_emitsound player server_var(wcs_userid) naiken/xenomorph/xenomorph_attack.wav 1.0 0.5"

[[skill3]]
setting        = "es_xset wcs_speed 1.04|es_xset wcs_speed 1.05|es_xset wcs_speed 1.06|es_xset wcs_speed 1.08|es_xset wcs_speed 1.09|es_xset wcs_speed 1.24|es_xset wcs_speed 1.36|es_xset wcs_speed 1.42"
cmd            = "es wcs_setfx speed event_var(userid) = server_var(wcs_speed) 0"
sfx            = ""

[[skill4]]
setting        = "es_xset wcs_shaketime 0.25;es_xset wcs_multiplier 0.05|es_xset wcs_shaketime 0.5;es_xset wcs_multiplier 0.1|es_xset wcs_shaketime 0.75;es_xset wcs_multiplier 0.15|es_xset wcs_shaketime 1;es_xset wcs_multiplier 0.2|es_xset wcs_shaketime 1.25;es_xset wcs_multiplier 0.25|es_xset wcs_shaketime 1.5;es_xset wcs_multiplier 0.3|es_xset wcs_shaketime 1.75;es_xset wcs_multiplier 0.35|es_xset wcs_shaketime 2;es_xset wcs_multiplier 0.4"
racealias_xenomorph1  = "es usermsg shake event_var(userid) 100 server_var(wcs_shaketime);es_emitsound player server_var(wcs_userid) naiken/xenomorph/xenomorph_attack2.wav 1.0 0.5;es_set wcs_dmg event_var(dmg_health);if (server_var(wcs_game) == dod) then es_xset wcs_dmg event_var(damage);es_xmath wcs_dmg float;es_math wcs_dmg * server_var(wcs_multiplier);es wcs_decimal wcs_dmg server_var(wcs_dmg);es wcs damage event_var(userid) event_var(attacker) server_var(wcs_dmg)"
#cmd            = "if (server_var(wcs_dice) <= 35) then wcsx get isdead wcs_dead event_var(userid);if (server_var(wcs_dice) <= 35) then es_xif (server_var(wcs_dead) = 0) then wcs_xalias racealias_xenomorph1"
                cmd            = "if (server_var(wcs_dice) <= 35) then wcs_xalias racealias_xenomorph1"
sfx            = "es_emitsound player event_var(userid) npc/zombie/claw_strike1.wav 1.0 0.5"

[[skill5]]
setting        = "es_xset wcs_range 50;es_xset wcs_fadetimer 1|es_xset wcs_range 75;es_xset wcs_fadetimer 0.9|es_xset wcs_range 100;es_xset wcs_fadetimer 0.8|es_xset wcs_range 125;es_xset wcs_fadetimer 0.7|es_xset wcs_range 150;es_xset wcs_fadetimer 0.6|es_xset wcs_range 200;es_xset wcs_fadetimer 0.5|es_xset wcs_range 250;es_xset wcs_fadetimer 0.5|es_xset wcs_range 300;es_xset wcs_fadetimer 0.5"
cmd            = "es_xdoblock wcs/tools/ultimates/default/xenomorph_ultimate"
sfx            = "es_emitsound player server_var(wcs_userid) naiken/xenomorph/xenomorph_ultimate.wav 1.0 0.5"
cooldown       = "5"

es_effect blocks:
Code: [Select]
block xenomorph_spawn
{
es_playsound event_var(userid) naiken/xenomorph/xenomorph_spawn.wav 1
es_tell event_var(userid) The Matriarch demands that you defeat your enemies.
es_cexec event_var(userid) r_screenoverlay effects/flicker_256.vmt
es_delayed 1.8 es_playsound event_var(userid) naiken/xenomorph/xenomorph_breathing.wav 0.2
es_delayed 0.1 playerset model event_var(userid) player/slow/aliendrone/slow_alien.mdl
es wcs_setfx gravity event_var(userid) = 0.6 0
es wcsgroup set ulti_immunity event_var(userid) 1
}

block xenomorph_death
{
es_emitsound player event_var(userid) naiken/xenomorph/xenomorph_death.wav 1.0 0.5
es es_stopsound event_var(userid) naiken/xenomorph/xenomorph_breathing.wav
}

block AntiFallDamage
{
  es_keysetvalue WCSuserdata event_var(userid) AntiFallDamage 1
  es_tell event_var(userid) #multi #green You have protection against Fall Damage
}

event player_falldamage
{
  es_keygetvalue wcs_tmp WCSuserdata event_var(userid) AntiFallDamage
  if (server_var(wcs_tmp) = 1) do
  {
    es_setinfo falldamag event_var(damage)
    es_xmath falldamag / server_var(falldmg)
  es playerset healthadd event_var(userid) server_var(falldamag)
  if (event_var(damage) <= 100) then es_tell event_var(userid) #multi #default [Anti Fall Damage] #lightgreen Prevented #green server_var(falldamag) #lightgreen Damage
  }
}
Ultimate Block: (you could technically link to human alliance ultimate, this was used just for organisation on our server)
Code: [Select]
block xenomorph_ultimate
{
es_xset wcs_ok 1
//es wcsx get getViewCoord wcs_coord server_var(wcs_userid)
//es wcsx split server_var(wcs_coord) wcs_x1 wcs_y1 wcs_z1
es playerget viewcoord server_var(wcs_userid) wcs_x1 wcs_y1 wcs_z1
//es est_GetViewCoord server_var(wcs_userid) wcs_x1 wcs_y1 wcs_z1
es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid)
es_xcopy wcs_x wcs_x1
es_xcopy wcs_y wcs_y1
es_xcopy wcs_z wcs_z1
es_math wcs_x - server_var(wcs_x2)
es_math wcs_y - server_var(wcs_y2)
es_math wcs_z - server_var(wcs_z2)
if (server_var(wcs_x) < 0) then es_xmath wcs_x * -1
if (server_var(wcs_y) < 0) then es_xmath wcs_y * -1
if (server_var(wcs_z) < 0) then es_xmath wcs_z * -1
ifx parse("(wcs_range < wcs_x) or (wcs_range < wcs_y) or (wcs_range < wcs_z)") do
{
es_xset wcs_ok 0
}
es wcsgroup get invisp wcs_tmp server_var(wcs_userid)
if (server_var(wcs_tmp) != 0) do
{
//es_xmath wcs_tmp float
//es_xmath wcs_tmp - 100
//es_xmath wcs_tmp * -2.55
//es est_rounddecimal wcs_tmp server_var(wcs_tmp) 0
es wcs_setfx invisp server_var(wcs_userid) = server_var(wcs_tmp) 1
//es est_setplayercolor server_var(wcs_userid) 255 255 255 0 1
//es_delayed 1 est_setplayercolor server_var(wcs_userid) 255 255 255 server_var(wcs_tmp) 1
}
ifx true(wcs_ok) do
{
es wcsx create wcs_coord server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
es wcs pushto server_var(wcs_userid) server_var(wcs_coord) 2
//es est_PushTo server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) "2"
es usermsg fade server_var(wcs_userid) 0 server_var(wcs_fadetimer) 1 0 0 0 250
//es est_Fade server_var(wcs_userid) 0 server_var(wcs_fadetimer) 1 0 0 0 250
}
else do
{
if (server_var(wcs_range) < server_var(wcs_x)) do
{
if (server_var(wcs_x2) >= 0) do
{
if (server_var(wcs_x1) >= 0) do
{
if (server_var(wcs_x2) > server_var(wcs_x1)) then es_xmath wcs_x2 - server_var(wcs_range)
if (server_var(wcs_x2) <= server_var(wcs_x1)) then es_xmath wcs_x2 + server_var(wcs_range)
}
else do
{
es_math wcs_x2 - server_var(wcs_range)
}
}
else do
{
if (server_var(wcs_x1) < 0) do
{
if (server_var(wcs_x2) > server_var(wcs_x1)) then es_xmath wcs_x2 - server_var(wcs_range)
if (server_var(wcs_x2) <= server_var(wcs_x1)) then es_xmath wcs_x2 + server_var(wcs_range)
}
else do
{
es_math wcs_x2 + server_var(wcs_range)
}
}
es_xcopy wcs_x1 wcs_x2
}
if (server_var(wcs_range) < server_var(wcs_y)) do
{
if (server_var(wcs_y2) >= 0) do
{
if (server_var(wcs_y1) >= 0) do
{
if (server_var(wcs_y2) > server_var(wcs_y1)) then es_xmath wcs_y2 - server_var(wcs_range)
if (server_var(wcs_y2) <= server_var(wcs_y1)) then es_xmath wcs_y2 + server_var(wcs_range)
}
else do
{
es_math wcs_y2 - server_var(wcs_range)
}
}
else do
{
if (server_var(wcs_y1) < 0) do
{
if (server_var(wcs_y2) > server_var(wcs_y1)) then es_xmath wcs_y2 - server_var(wcs_range)
if (server_var(wcs_y2) <= server_var(wcs_y1)) then es_xmath wcs_y2 + server_var(wcs_range)
}
else do
{
es_math wcs_y2 + server_var(wcs_range)
}
}
es_xcopy wcs_y1 wcs_y2
}
if (server_var(wcs_range) < server_var(wcs_z)) do
{
if (server_var(wcs_z2) >= 0) do
{
if (server_var(wcs_z1) >= 0) do
{
if (server_var(wcs_z2) > server_var(wcs_z1)) then es_xmath wcs_z2 - server_var(wcs_range)
if (server_var(wcs_z2) <= server_var(wcs_z1)) then es_xmath wcs_z2 + server_var(wcs_range)
}
else do
{
es_math wcs_z2 - server_var(wcs_range)
}
}
else do
{
if (server_var(wcs_z1) < 0) do
{
if (server_var(wcs_z2) > server_var(wcs_z1)) then es_xmath wcs_z2 - server_var(wcs_range)
if (server_var(wcs_z2) <= server_var(wcs_z1)) then es_xmath wcs_z2 + server_var(wcs_range)
}
else do
{
es_math wcs_z2 + server_var(wcs_range)
}
}
es_xcopy wcs_z1 wcs_z2
}
es wcsx create wcs_coord server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1)
es wcs pushto server_var(wcs_userid) server_var(wcs_coord) 1
//es est_PushTo server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) "1"
es wcs_xtell server_var(wcs_userid) Leap failed
es usermsg fade server_var(wcs_userid) 0 server_var(wcs_fadetimer) 0.2 0 0 0 220
//es est_Fade server_var(wcs_userid) 0 server_var(wcs_fadetimer) 0.2 0 0 0 220
}
}


Any problems, please let me know.
« Last Edit: November 18, 2017, 02:06:53 PM by Naiken »

Offline DarkGoku

  • Level 3 Trained Apprentice
  • ***
  • Posts: 73
Re: [Race] Xenomorph (Public Edition)
« Reply #1 on: August 08, 2012, 11:41:51 PM »
Works just fine great job

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 760
  • Country: dk
  • Working on a new server
Re: [Race] Xenomorph (Public Edition)
« Reply #2 on: October 09, 2017, 06:41:21 PM »
Hi Naiken :)

I really hope you will pop by to see this message.
Seeing as this was made in 2012 it is not entirely likely, but regardless.

First off, I like the race and it is great, a race worth adding to any server if you ask for my opinon. :)
I am going through some of the approved races on the forum and I see that this race is using customized sound files but the reference download link is no longer available.
Therefore I would like to ask if you would mind re-uploading the sound files the race was originally using. :)

Also in skill4 in your sfx line you are using server_var(wcs_userid) when it should be event_var(userid)  atleast I assume that is the one you want to hear the sound.

Same goes in the block for the death sound.
« Last Edit: October 09, 2017, 07:13:20 PM by Manifest »
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."

Offline Naiken

  • Level 7 Expert
  • *****
  • Posts: 223
  • Country: gb
  • Languages: ESS, SQF
Re: [Race] Xenomorph (Public Edition)
« Reply #3 on: November 17, 2017, 10:52:41 PM »
Well, I no longer have the files (many PC's ago), however If I get the time, I will create a new soundpack and update this race. stay tuned.

And yeah most likely coding mistakes (I used to rush more than I should have).


*UPDATED* New soundpack, however these are raw .wav files and have not been bzipped / compressed. best I could do in such short notice.
« Last Edit: November 18, 2017, 01:35:32 PM by Naiken »

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 760
  • Country: dk
  • Working on a new server
Re: [Race] Xenomorph (Public Edition)
« Reply #4 on: November 18, 2017, 07:07:05 PM »
I will fix soon, just starting to get back into wcs coding ;) and thanks for your kind words.

That sounds fantastic Naiken! It's nice to finally see you around again, it has been far too long! - And after going through most people's released content here on the forums, I am talking on behalf of the entire community when I say welcome back and we've missed you.

The content you released was by many means of very high quality back then and to this day it still remains so. Personally I have been very happy for your contributions as I have not had to adjust a lot in your content due to it's already very high quality. Which is one of the many reasons why I am happy to see you are once again present here on the forums. :-)

Also it is very nice that you mind patching up the old races of yours, thank you very much for that. :-)
And yeah most likely coding mistakes (I used to rush more than I should have).
- And that, I know just too well from myself haha :-)

Once again welcome back! :-)
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."

Offline Naiken

  • Level 7 Expert
  • *****
  • Posts: 223
  • Country: gb
  • Languages: ESS, SQF
Re: [Race] Xenomorph (Public Edition)
« Reply #5 on: November 18, 2017, 07:12:52 PM »
I will fix soon, just starting to get back into wcs coding ;) and thanks for your kind words.

That sounds fantastic Naiken! It's nice to finally see you around again, it has been far too long! - And after going through most people's released content here on the forums, I am talking on behalf of the entire community when I say welcome back and we've missed you.

The content you released was by many means of very high quality back then and to this day it still remains so. Personally I have been very happy for your contributions as I have not had to adjust a lot in your content due to it's already very high quality. Which is one of the many reasons why I am happy to see you are once again present here on the forums. :-)

Also it is very nice that you mind patching up the old races of yours, thank you very much for that. :-)
And yeah most likely coding mistakes (I used to rush more than I should have).
- And that, I know just too well from myself haha :-)

Once again welcome back! :-)

Thanks for the warm welcome! I will always be happy to fix/update anything that requires it, if anything else needs it, feel free to point it out. Currently in the process of working on a dedi server so I can test things, once complete I should be back to coding new content again (after a brief re-adjustment period, it's been a while).

Also let me know if there are any other issues with Xenomorph, I do believe I covered everything, the downside to the new soundpack is that I no longer have my old sound libraries so the sounds may not be as high quality as they were previously, either way feel free let me know. Thanks

Offline Manifest

  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 760
  • Country: dk
  • Working on a new server
Re: [Race] Xenomorph (Public Edition)
« Reply #6 on: November 18, 2017, 07:41:31 PM »
No problem, I'm just happy to see you around once again, after all your codes here on the forum along with Holliday's was the way I learned how to code in blocks back then, along with help from Kami and a few other people. :-)

I hope you will get your dedicated server working soon so that you can get back in the game soon :-)
Aside from the ones I listed back then, then I do not think there were any other issues which were of relevance in terms of the race's functionality, overall a great race in my opinion. :-)
In regards of the sounds, most races nowadays are not even this good quality, and very few have custom sounds, so I think people will be able to see through fingers with that, especially seeing as it is still way better than the average races. ;)

I have already gone through ALL of your races, but if I happen to find anything later on I will let you know. :D
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."