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 2008-12-06 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 06, 2008, 12:25:17 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Hall of Fame-Designer
Must Visit it
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Double jump, crouch= Invis  (Read 228 times)
Rotgutts
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 292


Krechure Feature



b0n3s212
Merzlin
« on: March 14, 2008, 11:02:29 PM »

I know many people have been asking latley for a double jump skill, so Noob Zard made this one, so here you guys go!

Code
GeSHi (eventscripts):
"skill3_setting"    "es_xset wcs_chance 45|es_xset wcs_chance 55|es_xset wcs_chance 65|es_xset wcs_chance 75|es_xset wcs_chance 80"
   "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xkeysetvalue WCSuserdata event_var(userid) allow_doublejump 1"
   "skill3_sfx"        "0"

Now you have to make a folder in your Cstrike/addons/
eventscripts. Name the folder doublejump

Put this inside the folder and make a text document name es_doublejump.txt

Now open up the file and put this in here

Code
GeSHi (eventscripts):
event player_jump
{
 es es_xif (es_keygetvalue wcs_race WCSuserdata event_var(userid) doublejump = "1") do
 {
   es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
   es_xmath wcs_z1 + 40
   es est_Effect 10 #a .4 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 100 1 20 100 1 255 15 7 100 10
   es est_getviewcoord event_var(userid) wcs_x2 wcs_y2 wcs_z2
   es_xmath wcs_z1 + 140
   es es_delayed .4 est_pushto event_var(userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1
   es es_delayed .3 est_physpush event_var(userid) 0 0 300
 }
}


To copy

Code:
event player_jump
{
  es es_xif (es_keygetvalue wcs_race WCSuserdata event_var(attacker) doublejump = "1") do
  {
    es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
    es_xmath wcs_z1 + 40
    es est_Effect 10 #a .4 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 100 1 20 100 1 255 15 7 100 10
    es est_getviewcoord event_var(userid) wcs_x2 wcs_y2 wcs_z2
    es_xmath wcs_z1 + 140
    es es_delayed .4 est_pushto event_var(userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1
    es es_delayed .3 est_physpush event_var(userid) 0 0 300
  }
}


Code:
    "skill3_setting"    "es_xset wcs_chance 45|es_xset wcs_chance 55|es_xset wcs_chance 65|es_xset wcs_chance 75|es_xset wcs_chance 80"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xkeysetvalue WCSuserdata event_var(userid) doublejump 1"
    "skill3_sfx"        "0"


Now heres a couple more

This one restricts all weapons, but you go invis when you crouch -made by me

Code
GeSHi (eventscripts):
event player_duck
{
 
     es est_setplayercolor server_var(WCS_userid) 255 255 255 0 1; es est_restrictall event_var(userid); est_unrestrict event_var(userid) weapon_knife; es_tell event_var(userid) #multi #greenYou #lightgreenare now #greenInvisible #lightgreen and you are now limited to your #greenknife!
 
}
 
event player_unduck
{
 
     es est_setplayercolor server_var(WCS_userid) 255 255 255 255 0; es est_unrestrictall event_var(userid)
 
}
 
 

*****NOTE***** remeber to make those files!!



« Last Edit: March 15, 2008, 04:20:59 PM by Noobzard » Logged


Join our clan today!
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #1 on: March 15, 2008, 05:03:05 AM »

...first one looks exactly like the code i gave to Chuggles for his Air Hike Skill



exept i didnt include
es es_xif (es_keygetvalue wcs_race WCSuserdata event_var(attacker) doublejump = "1") do

i dont know why it would be event_var(attacker) ?

the one for my server looks like

event player_jump
{
  es_keygetvalue wcs_race WCSuserdata event_var(userid) race
if (server_var(Wcs_race) = "40") do
{
es es_xif (server_var(wcs_djump) = 0) do
  {
    es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid)
    es_xmath wcs_z1 + 40
    es est_Effect 10 #a .4 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 20 100 1 20 100 1 255 15 7 100 10
    es est_getviewcoord event_var(userid) wcs_x2 wcs_y2 wcs_z2
    es_xmath wcs_z1 + 140
    es es_delayed .4 est_pushto event_var(userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1
    es es_delayed .3 est_physpush event_var(userid) 0 0 300
  }
}


es es_xif (server_var(wcs_djump) = 0) do
this makes it toggle with ultimate
if = 0 then allow double jump
i use this for my Plasma race
also turns invisible when in the air and completelt invisible when standing still
(without extended events)


its not really like double jump should be tho, its more like a jump then long jump once in the air


Logged


  connect 8.2.0.222:27015
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Offline Offline

Norway

Posts: 588



WWW
Gastingor
Mursat

myServer 74.86.98.64:27017
(Warning: click connects through Steam)
« Reply #2 on: March 15, 2008, 04:19:55 PM »

Creature, I only made these parts:

Code:
es es_xif (es_keygetvalue wcs_race WCSuserdata event_var(attacker) doublejump = "1") do

And the skill itself
The rest u gave me
And I took the right to fix the attacker thingy :p
That was just a typo from me
« Last Edit: March 15, 2008, 04:21:36 PM by Noobzard » Logged

Rotgutts
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 292


Krechure Feature



b0n3s212
Merzlin
« Reply #3 on: March 15, 2008, 05:52:13 PM »

Thanks holliday for making the skill, thanks Noob for modifying it ^^
Logged


Join our clan today!
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #4 on: March 15, 2008, 06:39:27 PM »

if you use that same code with extended events player_duck
it makes a nice skill
Logged


  connect 8.2.0.222:27015
Rotgutts
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 292


Krechure Feature



b0n3s212
Merzlin
« Reply #5 on: March 15, 2008, 07:20:55 PM »

Actualy, the skills ins't even working D: I'm trying to figure it out
Logged


Join our clan today!
Chuggles
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 20



« Reply #6 on: March 17, 2008, 06:22:54 AM »

Not even a double jump... mre like a long jump in mid air
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1907



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #7 on: March 17, 2008, 07:22:56 AM »

basically
it goes by view coord so if your looking up and jump youll double jump straight up if you look straight ahead its more like a double jump.
if you look far in the distance then its a jump + long jump
Logged


  connect 8.2.0.222:27015
Wizey
Level 3 Trained Apprentice
***
Offline Offline

United Kingdom

Posts: 66




eden_112
None

myServer 89.145.117.136:27015
(Warning: click connects through Steam)
« Reply #8 on: August 02, 2008, 09:16:31 PM »

i wonder if this can be fixed
Logged

May The Dragons Be With Us
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 04, 2008, 09:57:56 PM
gg
December 04, 2008, 09:46:16 PM
hey guys, how are you?
gonna sleep, cya tomorrow
December 03, 2008, 12:45:48 PM
@ bombkill : all mods should be compatible with WCS... but we can't be sure
@retrokboy : css server? provider? other mods?
December 03, 2008, 01:49:25 AM
I NEED SERVER HELP MY FORUM IS IN BUG REPORT PLEASE REPLY I NEED HALP
December 02, 2008, 10:05:01 PM
does anyone know where all the wcs compatible mods are listed or a website i can find them
December 02, 2008, 08:24:47 PM
/agree
Recent
[Today at 09:15:37 AM]

[Today at 08:33:01 AM]

[Today at 12:26:04 AM]

[December 05, 2008, 10:26:03 PM]

[December 05, 2008, 08:10:32 PM]

[December 05, 2008, 07:51:01 PM]

[December 05, 2008, 07:33:12 PM]

[December 05, 2008, 07:11:25 PM]

[December 05, 2008, 06:44:09 PM]

[December 05, 2008, 12:14:07 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.108 seconds with 27 queries.