June 16, 2019, 09:37:48 AM

Author Topic: ----Gravity Bender--- Not a C/P And is fully tested  (Read 5699 times)

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
----Gravity Bender--- Not a C/P And is fully tested
« on: January 20, 2008, 08:44:43 PM »
ZERO SKILLZ Gravity Bender!!!


Skill 1: Bend your openents gravity setting it extremely low
Skill 2: Send them flying in the air
Skill 3: Aim at them and Press your ultimate and pull them back down to earth (note some damage may happen)


To use the ultimate once the enemy is in the air you must look at them and press your ultimate button, it may take a few times but then when you do they'll go splat.
Code: [Select]
    ""
  {
    "name"              "Gravity Bender"
    "author"            "Zero Skillz"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "0"
    "teamlimit"         "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "0"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "3"
    "numberoflevels"    "5"
    "skillnames"        "set their gravity to almost nothing|Now send them into the air|Pull them down"
    "skilldescr"        "enemy now is low grav|slap them sky high|Pull 'em down"
    "skillcfg"          "player_attacker|player_attacker|player_ultimate"
   
    "skill1_setting"    "es_xsetinfo wcs_chance 3|es_xsetinfo wcs_chance 6|es_xsetinfo wcs_chance 9|es_xsetinfo wcs_chance 12|es_xsetinfo wcs_chance 15"
    "racealias_nograv"  "es est_SetGravity event_var(userid) .001;es es_delayed 10 est_SetGravity event_var(userid) 1;es es_xtell event_var(userid) #multi #lightgreenYour gravity has been #greenAltered;es es_xtell event_var(attacker) #multi #lightgreenYou have #greenAltered #lightgreenenemy's gravity"
    "skill1_cmd"       "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_nograv"
    "skill1_sfx"        "0"
   
    "skill2_setting"    "es_xsetinfo wcs_chance 25|es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 65|es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 85"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then ma_slap event_var(userid);es es_xtell event_var(attacker) #green You have slapped event_var(es_username);es es_xtell event_var(userid) #green You have been slapped by event_var(es_attackername)"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_gravity 10|es_xsetinfo wcs_gravity 100|es_xsetinfo wcs_gravity 300|es_xsetinfo wcs_gravity 500|es_xsetinfo wcs_gravity 1000"
    "racealias_sw41" "es est_Fade server_var(wcs_userid) 0 1 1 10 150 5 80;es est_getviewplayer server_var(wcs_userid) wcs_targetid;es es_xexists wcs_exists2 userid server_var(wcs_targetid);es est_isalive wcs_alive2 server_var(wcs_targetid);es es_xgetplayerteam wcs_team1 server_var(wcs_userid);es es_xgetplayerteam wcs_team2 server_var(wcs_targetid);racealias_sw42"
    "racealias_sw42" "es es_xif (server_var(wcs_exists2) = 1) then es_xif (server_var(wcs_alive2) = 1) then es_xif (server_var(wcs_team1) != server_var(wcs_team2)) then racealias_sw43"
    "racealias_sw43" "es_xsetinfo wcs_wall 1;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es_xmath wcs_z1 + 50;es_xmath wcs_z2 + 50;es est_getwallbetween wcs_wall server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);es es_xif (server_var(wcs_wall) = 0) then racealias_sw44"
    "racealias_sw44" "es_xsetinfo wcs_immunity 0;es es_xkeygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;es es_xif (server_var(wcs_immunity) = 0) then racealias_sw46;es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
    "racealias_sw46" "es est_SetGravity server_var(wcs_targetid) server_var(wcs_gravity);es_xmath wcs_counter + 1;es est_speed server_var(wcs_targetid) 0.6;es es_xdelayed 2 wcs_removefx speed server_var(wcs_targetid);racealias_sw47"
    "racealias_sw47" "es_setinfo wcs_nametarget 0;es est_getname wcs_nametarget server_var(wcs_targetid);es_setinfo wcs_nameuserid 0;es est_getname wcs_nameuserid server_var(wcs_userid);es es_xtell server_var(wcs_userid) #multi #Lightgreen : your enemy, server_var(wcs_nametarget) 's gravity has been #Green set to server_var(wcs_gravity) !! ;es es_xtell server_var(wcs_targetid) #multi #Lightgreen : your gravity #Green has been made server_var(wcs_gravity) by server_var(wcs_nameuserid) !! ;es_xsetinfo wcs_ultinotexec 0"
    "racealias_sw48" "es es_xif (server_var(wcs_ultinotexec) != 0) then es_xtell server_var(wcs_userid) #Lightgreen Ultimate failed theres no one where your pointing."

    "skill3_cmd" "es_xsetinfo wcs_exists2 0;es_xsetinfo wcs_hptarget 0;es_xsetinfo wcs_ultinotexec 1;es_xsetinfo wcs_targetid 0;es_xsetinfo wcs_alive1 0;es_xsetinfo wcs_team1 0;es_xsetinfo wcs_team2 0;es_xsetinfo wcs_alive2 0;es est_isalive wcs_alive1 server_var(wcs_userid);es es_xif (server_var(wcs_alive1) = 1) then racealias_sw41;racealias_sw48"
    "skill3_sfx"        "0"
    "ultimate_cooldown" "10"
 }

here it is!!! please tell me what you think of it.

NOTE: some of these values o


////////////////////EDIT\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
Fixed some bugs, that didnt effect performence but just neatness, Cheers to Frodo!
« Last Edit: January 21, 2008, 06:00:13 PM by |NS| Zero Skillz »

Offline D3vil

  • Level 7 Expert
  • *****
  • Posts: 549
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #1 on: January 20, 2008, 09:19:34 PM »
wow
pretty cool

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #2 on: January 20, 2008, 09:31:10 PM »
Thanks :D

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #3 on: January 20, 2008, 11:36:01 PM »
NO need to look at code i tested it for hours and didnt find a bug.. :D

Offline Frodo

  • Level 7 Expert
  • *****
  • Posts: 857
  • Actinosphaerium eichhorni
    • Belgium Force!
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #4 on: January 21, 2008, 02:21:17 PM »
There is a bug.

Quote
es est_SetGravity server_var(wcs_targetid) server_var(wcs_gravity);es est_setgravity server_var(wcs_targetid) server_var(wcs_targetid) server_var(wcs_gravity)
This is crazy. You do it twice and have you tried making eval 800 * 1000? That's 800000.

Quote
es es_xtell server_var(wcs_userid) #multi #Lightgreen : gravity #Green made server_var(wcs_gravity) set, and server_var(wcs_gravity) to server_var(wcs_nametarget) !! ;es es_xtell server_var(wcs_targetid) #multi #Lightgreen :  gravity #Green made server_var(wcs_gravity) damage to you by server_var(wcs_nameuserid) !!
Secondly you still use es es_x instead of es_. AND gravity isn't damage! How dare you! That's just not logic! There are of course some tricks to do this... And this gravity stays forever.

Actually I found it as best Bux ever. Everything's automated!

Offline Frodo

  • Level 7 Expert
  • *****
  • Posts: 857
  • Actinosphaerium eichhorni
    • Belgium Force!
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #5 on: January 21, 2008, 06:39:18 PM »
Zero, zero zero...

1) It doesn't matter you tested it. You don't do 1000 damage just because you set gravity...
2) Change all es es_x to es_ and you will be fine. That's exception for "if", change "es es_xif" to "if"... Delete one "es" before "es_delayed" in skill1.

And use es_xset instead of es_xsetinfo in future ;)

Actually I found it as best Bux ever. Everything's automated!

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #6 on: January 21, 2008, 07:37:34 PM »
Ok thanks, i was confuzed at wat you said first time like i said i fixed the problems with the xtell part, i thought u were saying that by setting their gravity to 1000 while their floating in air it wouldnt kill them, and i was like wtf is he thinking lol... but ya ok i c what your saying and thanks for the pointers

Offline DarkShadow

  • Level 7 Expert
  • *****
  • Posts: 228
  • Have a nice day !
    • DarkShadow's ZombieWarcraft Server
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #7 on: January 21, 2008, 07:38:48 PM »
This race is way to overpowered in a ZM mod map, rite?
Join my CSS Warcraft:Source Server! :D



IP: 217.163.27.106:27015



My server ad

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #8 on: January 21, 2008, 08:02:21 PM »
Code: [Select]

     "25"
  {
    "name"              "Gravity Bender"
    "author"            "Zero Skillz"
    "required_level"    "0"
    "maximum_level"     "0"
    "allow_only"        "<admins>"
    "teamlimit"         "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "0"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "3"
    "numberoflevels"    "5"
    "skillnames"        "set their gravity to almost nothing|Now send them into the air|Pull them down"
    "skilldescr"        "enemy now is low grav|slap them sky high|Pull 'em down"
    "skillcfg"          "player_attacker|player_attacker|player_ultimate"
   
   
    "skill1_setting"    "es_xset wcs_chance 3|es_xset wcs_chance 6|es_xset wcs_chance 9|es_xset wcs_chance 12|es_xset wcs_chance 15"
    "racealias_nograv"  "es est_SetGravity event_var(userid) .001;es es_delayed 10 est_SetGravity event_var(userid) 1;es_tell event_var(userid) #multi #lightgreenYour gravity has been #greenAltered;es_tell event_var(attacker) #multi #lightgreenYou have #greenAltered #lightgreenenemy's gravity"
    "skill1_cmd"       "if (server_var(wcs_dice) <= server_var(wcs_chance)) then racealias_nograv"
    "skill1_sfx"        "0"
   
    "skill2_setting"    "es_xset wcs_chance 25|es_xset wcs_chance 45|es_xset wcs_chance 65|es_xset wcs_chance 45|es_xset wcs_chance 85"
    "skill2_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then ma_slap event_var(userid);es_tell event_var(attacker) #green You have slapped event_var(es_username);es_tell event_var(userid) #green You have been slapped by event_var(es_attackername)"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xset wcs_gravity 10|es_xset wcs_gravity 100|es_xset wcs_gravity 300|es_xset wcs_gravity 500|es_xset wcs_gravity 1000"
    "racealias_sw41" "es est_Fade server_var(wcs_userid) 0 1 1 10 150 5 80;es est_getviewplayer server_var(wcs_userid) wcs_targetid;es_exists wcs_exists2 userid server_var(wcs_targetid);es est_isalive wcs_alive2 server_var(wcs_targetid);es_getplayerteam wcs_team1 server_var(wcs_userid);es_getplayerteam wcs_team2 server_var(wcs_targetid);racealias_sw42"
    "racealias_sw42" "if (server_var(wcs_exists2) = 1) then if (server_var(wcs_alive2) = 1) then if (server_var(wcs_team1) != server_var(wcs_team2)) then racealias_sw43"
    "racealias_sw43" "es_xset wcs_wall 1;es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid);es_getplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es_xmath wcs_z1 + 50;es_xmath wcs_z2 + 50;es est_getwallbetween wcs_wall server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);if (server_var(wcs_wall) = 0) then racealias_sw44"
    "racealias_sw44" "es_xset wcs_immunity 0;es_keygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;if (server_var(wcs_immunity) = 0) then racealias_sw46;if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);if (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
    "racealias_sw46" "es est_SetGravity server_var(wcs_targetid) server_var(wcs_gravity);es_xmath wcs_counter + 1;es est_speed server_var(wcs_targetid) 0.6;es_delayed 2 wcs_removefx speed server_var(wcs_targetid);racealias_sw47"
    "racealias_sw47" "es_setinfo wcs_nametarget 0;es est_getname wcs_nametarget server_var(wcs_targetid);es_setinfo wcs_nameuserid 0;es est_getname wcs_nameuserid server_var(wcs_userid);es_tell server_var(wcs_userid) #multi #Lightgreen : your enemy, server_var(wcs_nametarget) 's gravity has been #Green set to server_var(wcs_gravity) !! ;es_tell server_var(wcs_targetid) #multi #Lightgreen : your gravity #Green has been made server_var(wcs_gravity) by server_var(wcs_nameuserid) !! ;es_xset wcs_ultinotexec 0"
    "racealias_sw48" "if (server_var(wcs_ultinotexec) != 0) then es_xtell server_var(wcs_userid) #Lightgreen Ultimate failed theres no one where your pointing."

    "skill3_cmd" "es_xset wcs_exists2 0;es_xset wcs_hptarget 0;es_xset wcs_ultinotexec 1;es_xset wcs_targetid 0;es_xset wcs_alive1 0;es_xset wcs_team1 0;es_xset wcs_team2 0;es_xset wcs_alive2 0;es est_isalive wcs_alive1 server_var(wcs_userid);if (server_var(wcs_alive1) = 1) then racealias_sw41;racealias_sw48"
    "skill3_sfx"        "0"
    "ultimate_cooldown" "10"
 }


Better Frodo?? tested it seems to work find and the coding is lighter too :D thanks!

**EDIT*
srry i missed a few fix that in a min

**EDIT 2**
ok changes are finished take a look now frodo
« Last Edit: January 24, 2008, 01:07:09 AM by |NS| Zero Skillz »

Offline Chicken

  • Level 2 Apprentice
  • **
  • Posts: 42
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #9 on: January 22, 2008, 04:41:45 PM »
love this race its on my server

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #10 on: January 23, 2008, 12:13:15 AM »
Glad to hear it.

Offline Stickie

  • Level 2 Apprentice
  • **
  • Posts: 43
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #11 on: February 20, 2008, 05:24:03 PM »
One thing tho, when you have sv_turbophysics set to 1, this will remove the effect.
the player will often just get slapped, but thats it.

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #12 on: February 20, 2008, 07:08:51 PM »
Lol, glad you like it however it works with sv_turbophysics i tested on my Zombie server, surf server, normal server, and a wcs rpg server(no longer availible ot me) and it all worked fine... my Zombie server has sv_turbophysics set to 1 so ya...

Offline Zero Skillz

  • Level 7 Expert
  • *****
  • Posts: 525
Re: ----Gravity Bender--- Not a C/P And is fully tested
« Reply #13 on: February 20, 2008, 09:37:40 PM »
ya replace ma_slap with es est_physpush 10 or 15 maybe 20?