Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-07-12 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
September 01, 2009, 12:25:43 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1] 2   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Race - Action man :)  (Read 926 times)
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« on: January 09, 2009, 06:12:20 PM »

Hi you people Smiley

I just finished my Action man race:)

it's only a little custom made (the first skill), and I do not know if all the skills work, since i havent tested yet, but there should be no problems Smiley

race
Ultimate txt
add this line to your es_WCSlanguage_db.txt under the race section ,
Code:
"wcs_lng_r_action" "#greenAction man #lightgreendid#green %1 #lightgreento you."

and in case you don't have this, just added beneath the line above in the same section:
Code:
"wcs_lng_r_knifedmg2" "#lightgreenYou did#green %1 #lightgreenextra damage to#green %2"
"wcs_lng_r_knifedmg3" "#green %1#lightgreendid#green %2 #lightgreenextra damage to you"

and here's the disintegrate block
Code:
block wcs_ulti_disintegrate
{
  es_give server_var(wcs_userid) env_entity_dissolver
  es_fire server_var(wcs_userid) env_entity_dissolver AddOutput "target cs_ragdoll"
  es_fire server_var(wcs_userid) env_entity_dissolver AddOutput "magnitude 5000"
  es_fire server_var(wcs_userid) env_entity_dissolver Dissolve
  es_delayed 18 es_xremove env_entity_dissolver
}

please post any feedback (mainly looking for bug reports Wink )

EDIT: added checks and modified alias's
EDIT1: i've posted the new code for the race, hopefully this will fix the not completely working dissolve skill. (still have a problem with the menu, know some will say dont use event_var(userid), but in this case it shouldn't matter i've been told also, and server_var(wcs_userid) and event_var(_popup_userid) didn't work for me. help will be appreciated).

Kind regards
Rasmus Smiley
« Last Edit: January 29, 2009, 10:36:33 PM by [H.F.M.]Rasmus{Chef} » Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Raynos
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 158



« Reply #1 on: January 09, 2009, 07:41:32 PM »

Couple of pointers,

dont rand wcs_rand in spawn_cmd do it skill1_cmd instead

Make sure you have unique racealias names, two racealias's with the same name in one race_db will cause problems

i would recommend racealias_ActM11 (ActM = action man 1 = racealias nr 1 = skill nr)

if (event_var(weapon) in server_var(wcs_wpn_knives))

I think thats a Day of defeat command i would say "es es_if (event_var(weapon) = knife) then racealias_action

you can have "ultimate_cooldown" "120|100|80|60|30" if you want

have you defined ""racealias_tell1"   "wcs_getlanguage wcs_lng wcs_lng_r_action" ? i presume that action means its not C&P but edited by you

I dont know anything about wcs_lng Tongue
Logged
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #2 on: January 09, 2009, 08:32:40 PM »

first of all, if (event_var(weapon) in server_var(wcs_wpn_knives)) is registered in the es_wcs.txt by kryptonite, it is for css (used in the succubus race),
secondly, there are no racealias's with the same name, they are extended by a number in sequence,

I know i can use more than one cooldown time, but i havent on purpose.
about the language, good you mentioned that, will have to attach that part to the topic, but it's self made by me EVERYTHING!

why wont you rand in the player_spawn_cmd ?
I need the same value for that var for the entire round, but in the skill_cmd it would be re-randed when skill activates.

anything else you want to comment ? Wink

kind regards
Rasmus
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Raynos
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 158



« Reply #3 on: January 09, 2009, 10:55:45 PM »

I was told by someone reliable (believe teachercreature) to use unique racealias names and i the ultimates with 0 setting is a bit boring is a not? Tongue

didnt know abotu wcs_wpn_knives seen something similar including spades and other things used in dod

and like i said earlier im off the opionin your wcs_rand value wont be saved for the whole round but that might not be true check with someone else on that
Logged
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #4 on: January 09, 2009, 11:44:33 PM »

your are right in making unique racealiases, that one i give you Smiley but on the wcs_rand part, we'll see when it is being tested Smiley
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #5 on: January 10, 2009, 12:49:01 AM »

It should be saved, doesn't matter what you use.  Egg, cat, pappas_pain_meds... anything, it should.

your are telling me im right, right? no matter what this var should stay untill spawn where it rands a new one?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Zawmbee
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 534


The GUARDIAN


« Reply #6 on: January 10, 2009, 01:01:55 AM »

yeah, I think your right... lol why Huh
Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #7 on: January 10, 2009, 01:08:18 AM »

because i wan't sure.. :/

well it will proably soon be tested on my server Smiley
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #8 on: January 11, 2009, 01:14:27 PM »

hi Smiley race has been updated Smiley
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #9 on: January 20, 2009, 08:52:12 PM »

Ok I did not look at the large gun menus (my eyes hurt lol)

The distinegrate block is ok but if you use it as a victim skill you may want to cahnge server_var(wcs_userid) to event_var(userid)

The race has keycreate in player_spawn uneeded.
the es_rand in the player_spawn command will not carry to skill 1, that should be set in a key or run the rand in the cmd line.

I think skill 1 will proc ulti block 100% of the time, or 0 % depending on whether you alter the ulti.
Also if you clearly word how you would like skill1 to work I think ti can be coded with alot more ease.

PS without skill settings I can put one point in skill1 one point in skill 3 and then max skill 2 and the race will be done... No reason to level skill 1 or 3 (not sure if that is intentional or not)



SKill 1 if I understand might work better if you simply rand wcs_rand then if dmg < rand est_heal dmg; if dmg > rand run ulti block

I would be glad to code skill 1 if you like but I am not sure what you want it to do.

PS you use a lot of code expansions that are not necessary. likes es_rand instead of es_xrand and if instead of es es_xif
The expanded version are slightly slower and not necessary in most of the cases in this race.

hope that helped

i'll try, but beret told me that plain if is better than es es_xif ?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #10 on: January 20, 2009, 09:17:56 PM »

i have altered the race a little,
and about your comment on just leveling the first and last skill 1 time, no, that's not true (not completely), because since you haven't looked through the menu, you haven't seen that on some weapons you have to be over X amount of levels in the skill (atleast i think it's the skill, might the race overall) to have them all unlocked.

skill1 you might be right, but that's only because I wont rand the var there, since it then will be randed everytime im the victim.

and what i want the skill to do exactly i think you have heard before.

what it does is in all its basic, to "disable" the hp-meter and instead collect the amount of damage you have been dealt, saving it in a var (wcs_savehealth), and calling that var everytime the damage taken is less than the var maxrandedhp (new var i just made for the sake of the skill). when the skill then activates it should get the value of the key wcs_savehealth, check if it's more or less than maxrandedhp, if less, then get the damage from the attack, save it to the value, check if still less, if yes then tell the tell part, but if it's more than maxrandedhp, then do the dissolve.

you see the point of the skill now?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
[Oddity]TeacherCreature
Watchdogs
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1369



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #11 on: January 21, 2009, 12:26:15 AM »

Yes I do.
Plain if is not better, what it does is expand the variables, which is need sometimes, but that is slower and if it is not needed should not be done.
In general it is not a big deal but technically is incorrect.


Ok on skill 1 the pseudo code is this:
Set a KEY to 0 in event player_spawn in es_wcs.txt
KEYSET savehealth 0

Then in skill 1 KEYGET into wcs_tmp
use the setting line to create a variabel we check against

If wcs_tmp < variable
est_health dmg
math tmp + dmg
KEYSET wcs_tmp

If wcs_tmp > variable
est_slay userid
KEYSET to 0

Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #12 on: January 21, 2009, 10:40:26 AM »

hmm, think i get your point,

but i do already have the var to check against, (maxrandedhp),
but maybe i've complicated it a little since it's the first time using keyvalues.

do you see a reason for it not to save the value of wcs_savehealth?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
[Oddity]TeacherCreature
Watchdogs
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 1369



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #13 on: January 21, 2009, 05:21:03 PM »

I did not look at skill 2 or 3, but I did redo skill 1 real quick..
Look at it and test it because I didn't run it through any syntax checks or anything.
2 major things I noticed.
   1.Without saving your variables you can NOT use a delay with a racealias..
   2.When you do keysetvalue wcs_tmp savedhealth  later on when u do if then statement you have to use the wcs_tmp variable. (you will understand when you look what I changed)


Code:
"201"
  {
    "name"              "Action Man (finished)"
    "author"            "[H.F.M.]Rasmus{Chef}"
    "shortdescription"  "An Action man look a like race :)"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "<admins>"
    "teamlimit"         "2"
    "restrict_shop"     "0"
    "preloadcmd"        "es_xset wcs_savehealth 0;es_xset maxrandedhp 0"
    "player_spawn_cmd"  "es_xkeysetvalue WCSuserdata event_var(userid) wcs_savehealth 0;es_xrand wcs_rand 99 199;es es_xkeysetvalue WCSuserdata event_var(userid) maxrandedhp server_var(wcs_rand);es est_sethealth event_var(userid) 175;es_centertell event_var(userid) Action man is strong :)"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "3"
    "numberoflevels"    "5"
    "skillnames"        "Power of plastic|Muscle power|Eternal arsenal"
    "skilldescr"        "Nothing hurts, but you will just dissolve at some point|Action man packs a deadly punch|Action man can use every weapon after practicing"
    "skillcfg"          "player_victim|player_attacker|player_ultimate"
   
    "skill1_setting" "0"
    "skill1_cmd"     "es_xsetinfo wcs_dmg event_var(dmg_health);es_xsetinfo wcs_tmp 0;es es_xkeygetvalue wcs_tmp WCSuserdata event_var(userid) maxrandedhp;if (server_var(wcs_dmg) >= server_var(wcs_tmp)) then es_xdoblock wcs/WCSultimates/wcs_ulti_disintegrate;if (server_var(wcs_dmg) < server_var(wcs_tmp)) then racealias_ActDO;;racealias_ACTH"
    "racealias_ActDO" "es_xsetinfo wcs_tmp2 0;es_keygetvalue wcs_tmp2 WCSuserdata event_var(userid) wcs_savehealth;es es_xdelayed 0.2 es_math wcs_tmp2 + server_var(wcs_dmg);es_delayed 0.3 es_keysetvalue WCSuserdata event_var(userid) wcs_savehealth server_var(wcs_tmp2);if (server_var(wcs_tmp2) >= server_var(wcs_tmp)) then es_delayed 0.5 es_xdoblock wcs/WCSultimates/wcs_ulti_disintegrate;if (server_var(wcs_tmp2) < server_var(wcs_tmp)) then es_delayed 0.8 es est_sethealth event_var(userid) 175"
    "racealias_ACTH" "es_tell event_var(userid) #multi #lightgreenYou didn't feel #greenanything#lightgreen, but #greenbeware#lightgreen, you will die at some point"
    "skill1_sfx"     "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);racealias_sfx1"
    "racealias_sfx1" "es es_xmath server_var(wcs_z1) + 5;es est_effect 8 #a 0 effects/ar2ground2.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 10 25 5 4 6 2 2 255 255 255 175 10 0;racealias_sfx2;racealias_sfx3"
    "racealias_sfx2" "es es_xdelayed 0.5 es_xmath server_var(wcs_z1) + 10;es es_xdelayed 0.5 est_effect 8 #a 0 effects/ar2ground2.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 10 25 5 4 6 2 2 255 255 255 175 10 0"
    "racealias_sfx3" "es es_xdelayed 1 es_xmath server_var(wcs_z1) + 15;es es_xdelayed 1 est_effect 8 #a 0 effects/ar2ground2.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 10 25 5 4 6 2 2 255 255 255 175 10 0"
   
    "skill2_setting" "es_xset wcs_multiplier 0.125|es_xset wcs_multiplier 0.25|es_xset wcs_multiplier 0.375|es_xset wcs_multiplier 0.5|es_xset wcs_multiplier 0.625"
    "skill2_cmd" "if (event_var(weapon) in server_var(wcs_wpn_knives)) then racealias_acTMan"
    "racealias_acTMan" "es_xset wcs_dmg event_var(dmg_health);es_xmath wcs_dmg float;es_xmath wcs_dmg * server_var(multiplier);es est_rounddecimal wcs_dmg server_var(wcs_dmg) 0;es wcs_dealdamage event_var(attacker) event_var(userid) server_var(wcs_dmg);racealias_AcTell1"
    "racealias_AcTell1" "wcs_getlanguage wcs_lng wcs_lng_r_action;es_format wcs_lng server_var(wcs_lng) server_var(wcs_dmg);es es_xtell event_var(attacker) #multi server_var(wcs_lng);racealias_AcTell2"
    "racealias_AcTell2" "wcs_getlanguage wcs_lng wcs_lng_r_knifedmg2;es_format wcs_lng server_var(wcs_lng) server_var(wcs_dmg) event_var(es_username);es es_xtell event_var(userid) #multi server_var(wcs_lng)"
    "skill2_sfx" "if (event_var(weapon) in server_var(wcs_wpn_knives)) then es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1;if (event_var(weapon) in server_var(wcs_wpn_knives)) then est_effect 23 #a 0 effects/ar2_altfire1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 2 20 10"
   
    "skill3_setting" "0"
    "skill3_cmd" "es es_xdoblock wcs/WCSultimates/pgmenu"
    "skill3_sfx" "0"
    "ultimate_cooldown" "60"
  }
« Last Edit: January 21, 2009, 05:22:44 PM by [Oddity]TeacherCreature » Logged

Rasmus
Trapped in between
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 1492




Rasmus4J
rasmus4j
« Reply #14 on: January 21, 2009, 07:44:34 PM »

hmm, dont see that big changes, and some small errors,

why do you do es_xsetinfo wcs_tmp 0 ? wcs_tmp does already exist, and why do you use es_xsetinfo instead of es_xset?
Logged

where would you put the comma in the following telegram from a wife, to her husband in the navy?
"Not getting any better hurry home!"
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Dutch Hosting

Last 7 Shouts:
Today at 12:12:32 PM
Ehm, guys take create a topic about this plz..
Today at 11:24:14 AM
exec userconfig.cfg
exec server.cfg
mattie_eventscripts 1
eventscripts_subdirectory events
es_load wcs
es_load wcsCadmin

this is whats in my autoexec.cfg is this right?
Today at 11:16:25 AM
Hi me again i followd ur advise HOLLIDAY but it still has the same message...

] wcsCadmin
ERROR: Variable does not exist.
  Error source es_wcsCadmin.txt: es_xgetcmduserid wcs_userid
The var "wcs_userid" could not be set
ERROR: Eventscripts cannot find the WCSuserdata group!
  Error source
Today at 07:58:55 AM
This is cause you don't know configuration Smiley
Having translated the main sourcemod config file, i know you can avoid this Tongue
Today at 07:10:01 AM
sourcemod sucks....piss me off some noob admin ban me on sourcemod and there no way i cant get unban for 2 days so i finally removed sourcemod mod
Today at 05:27:50 AM
a fix for what?
August 31, 2009, 09:51:10 PM
If Diraiba doesn't answer tomorrow, i'll have to release the fix without his authorisation Sad
Recent
[Today at 12:18:26 PM]

[Today at 04:59:44 AM]

[Today at 12:58:33 AM]

[August 31, 2009, 11:14:37 PM]

by MiiX
[August 31, 2009, 09:53:03 PM]

[August 31, 2009, 07:15:45 PM]

[August 31, 2009, 07:04:20 PM]

[August 31, 2009, 06:30:43 PM]

[August 31, 2009, 05:46:55 PM]

[August 31, 2009, 03:38:18 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.115 seconds with 25 queries.