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-10 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 10, 2009, 04:28:00 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as... HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
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: [Oddity]Confusion [MISC]  (Read 748 times)
[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« on: January 13, 2009, 04:26:07 PM »

Confusion, of a pathological degree, usually refers to loss of orientation (ability to place oneself correctly in the world by time, location, and personal identity) and often memory (ability to correctly recall previous events or learn new material).



Race Feature:
Color Confusion - Flash all types of brilliant random colors.
Skills:
Memory Loss - Go invisible while jumping
Dizzy - Stun your enemy
Blur - Confuse your attacker
Confuse - Stun enemies that are too close to you AOE in waves like regen
Hallucinate - Speed burst and some health



2 FILE INSTALL:  (JUST READ CAREFULLY)
Part 1 goes in racefile_db

Code:
"##"                                 
  {
    "name"              "[Oddity]Confusion [MISC]"         
    "author"            "[Oddity]TeacherCreature"         
    "shortdescription"  "Mental State"             
    "required_level"    "1600"             
    "maximum_level"     "0"           
    "allow_only"        "0"
    "teamlimit"         "0"         
    "preloadcmd"        "0"       
    "player_spawn_cmd"  "es wcs_restrict event_var(userid) p228;es es_xdelayed 6 est_speed event_var(userid) 1.2;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) confusion 1"             
    "round_start_cmd"   "0"             
    "round_end_cmd"     "0"             
    "numberofskills"    "5"           
    "numberoflevels"    "6"           
    "skillnames"        "Memory Loss(Jump)|Dizzy(Attacker)|Blur(Victim)|Confuse(Spawn)|Hallucinate(Ultimate)"   
    "skilldescr"        "Less gravity and Longjump|Stun your enemy with less dmg|Mess with vision for a period of time|AOE stun enemies|Speed burst for X seconds"
    "skillcfg"          "player_spawn|player_attacker|player_victim|player_spawn|player_ultimate"

    "skill1_setting"    "es_xsetinfo wcs_air 0.9|es_xsetinfo wcs_air 0.8|es_xsetinfo wcs_air 0.7|es_xsetinfo wcs_air 0.6|es_xsetinfo wcs_air 0.5|es_xsetinfo wcs_air 0.4"
    "skill1_cmd"        "es est_setgravity event_var(userid) server_var(wcs_air);es es_xkeysetvalue WCSuserdata server_var(wcs_userid) longjump 1.25;es es_xkeysetvalue WCSuserdata server_var(wcs_userid) jumpinvis 1"
    "skill1_sfx"        "0"                         

    "skill2_setting"    "es_xsetinfo wcs_duration 1|es_xsetinfo wcs_duration 1.2|es_xsetinfo wcs_duration 1.3|es_xsetinfo wcs_duration 1.4|es_xsetinfo wcs_duration 1.5|es_xsetinfo wcs_duration 1.6"
    "skill2_cmd"        "es est_freeze event_var(userid) 1;es es_xdelayed server_var(wcs_duration) est_freeze event_var(userid) 0;es_xrand wcs_addhealth 1 20;es est_health event_var(userid) + server_var(wcs_addhealth)"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_duration 1|es_xsetinfo wcs_duration 1.2|es_xsetinfo wcs_duration 1.3|es_xsetinfo wcs_duration 1.4|es_xsetinfo wcs_duration 1.5|es_xsetinfo wcs_duration 1.6"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= 33) est_drug event_var(attacker) server_var(wcs_duration)"
    "skill3_sfx"        "0"
             
    "skill4_setting"    "es_xsetinfo wcs_radius 200|es_xsetinfo wcs_radius 210|es_xsetinfo wcs_radius 220|es_xsetinfo wcs_radius 230|es_xsetinfo wcs_radius 240|es_xsetinfo wcs_radius 250"
    "racealias_cnfs1"   "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed 1 wcs_dalias racealias_cnfs2 server_var(wcs_tmp2) server_var(wcs_radius) 1"
    "racealias_cnfs2"   "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_cnfs3"
    "racealias_cnfs3"   "es_getplayerteam wcs_team server_var(wcs_tmp2);if (server_var(wcs_team) = 2) then es_xsetinfo wcs_team #c!d;if (server_var(wcs_team) = 3) then es_xsetinfo wcs_team #t!d;es est_Near wcs_targetid server_var(wcs_team) server_var(wcs_tmp3) server_var(wcs_tmp2) racealias_cnfs4;racealias_cnfs1"
    "racealias_cnfs4"   "es es_xgetplayername wcs_name server_var(wcs_targetid);es_tell server_var(wcs_tmp2) #green Confusion froze server_var(wcs_name);racealias_cnfs5"
    "racealias_cnfs5"   "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_tmp2);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)"
    "racealias_cnfs6"   "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 wcs_run_ulti_chain3;es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_tmp2) #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_cnfs7"   "es_xmath wcs_counter + 1;es est_playplayer server_var(wcs_targetid) weapons/stunstick/spark2.wav;es est_freeze server_var(wcs_targetid) 1;es es_xdelayed 0.4 est_freeze server_var(wcs_targetid) 0;es est_shake server_var(wcs_targetid) 2 5 2"
    "skill4_cmd"        "es_xsetinfo wcs_round 0;es_keysetvalue WCSUserdata event_var(userid) aura_round server_var(wcs_roundcounter);es_setinfo wcs_tmp2 event_var(userid);racealias_cnfs1"
    "skill4_sfx"        "0"

    "skill5_setting"    "es_xrand wcs_duration 1 2|es_xrand wcs_duration 1 3|es_xrand wcs_duration 1 4|es_xrand wcs_duration 1 5|es_xrand wcs_duration 1 6|es_xrand wcs_duration 1 7"
    "skill5_cmd"        "es playerset speedadd server_var(wcs_userid) 0.6;es es_xdelayed server_var(wcs_duration) playerset speedadd server_var(wcs_userid) -0.6;es_xrand wcs_addhealth 10 25;es est_health server_var(wcs_userid) + server_var(wcs_addhealth)"
    "skill5_sfx"        "0"             
      "ultimate_cooldown" "20"
  }


Part 2 - The rest of this goes in the main WCS file es_WCS.txt:
3 pieces of code:

1. Find the event player_spawn and go to where all the commands say keysetvalue (there will be a few of them) add these two to the list.
Code:
es es_xkeysetvalue WCSuserdata server_var(wcs_userid) confusion 0
es es_xkeysetvalue WCSuserdata server_var(wcs_userid) jumpinvis 0

2. Find the event player_jump and fit this into it carefully:
Code:
es_xsetinfo wcs_jumpinvis 0
es es_xkeygetvalue wcs_jumpinvis WCSuserdata event_var(userid) jumpinvis
es es_xif (server_var(wcs_jumpinvis) != 0) do
 {
   es est_setplayercolor event_var(userid) 255 255 255 0 1 
   es est_effect 4 #a 0 sprites/lgtning.vmt event_var(userid) 1 10 10 3 25 25 25 200
   es es_xdelayed 1.5 est_setplayercolor event_var(userid) 255 255 255 255 1
 }

3. Find the event player_footstep and fit this into it carefully:
Code:
es_xsetinfo wcs_confusion 0
es es_xkeygetvalue wcs_confusion WCSuserdata event_var(userid) confusion
es es_xif (server_var(wcs_confusion) != 0) do
 {
  es_xrand wcs_red 1 99
  es_xrand wcs_green 1 99
  es_xrand wcs_blue 1 99
  es_xmath wcs_red * 2.55
  es_xmath wcs_green * 2.55
  es_xmath wcs_blue * 2.55
  es est_setplayercolor event_var(userid) server_var(wcs_red) server_var(wcs_green) server_var(wcs_blue) 255 1 
 }
« Last Edit: January 13, 2009, 05:17:28 PM by [Oddity]TeacherCreature » Logged

Kana
Level 2 Apprentice
**
Offline Offline

Brazil Brazil

Posts: 48


Learning EventScripts



godshake
« Reply #1 on: January 13, 2009, 06:10:19 PM »

Looks good , i'll test it now :]
Logged
joppeabc
Level 6 Experienced
******
Offline Offline

Norway

Posts: 237




mordilikerfardin14
joppeabc
« Reply #2 on: January 13, 2009, 09:50:40 PM »

No difference from this and the one that are on the your server?

Thanks
- Muffin
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #3 on: January 13, 2009, 11:46:25 PM »

Yea there is always a difference?

Dizzy and blur are different
Logged

joppeabc
Level 6 Experienced
******
Offline Offline

Norway

Posts: 237




mordilikerfardin14
joppeabc
« Reply #4 on: January 14, 2009, 08:05:15 PM »

Yeah, there are always(Atleast really often) a difference from the one u post than the one one the server Tongue
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #5 on: January 14, 2009, 08:33:22 PM »

Well the problem is on the server they are coded with much more complexity and it is very difficult to post it on here. Partially because it would be like a 10 part install into like 6 or 7 files.

I tried to share this one or other complex ones (for example my Ironman race) and I get bombarded with people who can't install it because it is too complex, and they need help.

What I do is when I make races that aren't too complex like this one I code it down a bit so it is easier to install and share it.

Unfortunately it means you get the simpler version, but hey I think for the most part I share a LOT ofd cool stuff with everyone.
Logged

Penguinarmy357
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 35



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

Why doesn't my wcs version have a event for player_footstep?
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1454



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #7 on: January 24, 2009, 01:03:51 AM »

Why doesn't my wcs version have a event for player_footstep?
because wcs doenst have events but es does Wink
Logged

keepa
Level 1 Trained Beginner
*
Offline Offline

Australia Australia

Posts: 23



« Reply #8 on: January 31, 2009, 11:18:11 PM »

Why doesn't my wcs version have a event for player_footstep?
because wcs doenst have events but es does Wink

so where do you add the code then if there is no player_footstep in wcs.txt???
Logged
WCA | Maxxi [NL]
WCS Supporter
Level 7 Master
*****
Offline Offline

Netherlands Netherlands

Posts: 1454



WWW
16maxpayne16

myServer 84.243.214.217:27015
(Warning: click connects through Steam)
« Reply #9 on: January 31, 2009, 11:50:05 PM »

Why doesn't my wcs version have a event for player_footstep?
because wcs doenst have events but es does Wink

so where do you add the code then if there is no player_footstep in wcs.txt???
make the event in the wcs file or in just any other file Wink

event player_footstep
Logged

MikeHORROR
Level 0 Beginner

Offline Offline

Belgium Belgium

Posts: 18




Cptbullet
« Reply #10 on: March 07, 2009, 07:54:59 PM »

Nice race Oddity!
I like it alot =D
Adding it to my racelist fosho
Logged
Stinkyfax
I <3 WCS
Watchdogs
Level 7 Master
*****
Offline Offline

United Kingdom

Posts: 1821



WWW
Xrushiov

myServer 84.55.62.45:27016
(Warning: click connects through Steam)
« Reply #11 on: March 07, 2009, 11:11:37 PM »

seems to be funny
though:
 es_xrand wcs_red 1 99
  es_xrand wcs_green 1 99
  es_xrand wcs_blue 1 99
  es_xmath wcs_red * 2.55
Try es_xrand wcs_red 1 255 coz it seems like you give float values to color (Example: 1 * 2.55 is float)
While RGB(A) is made only for integers
Logged



[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #12 on: March 07, 2009, 11:28:15 PM »

I thought about that but I wasnt sure if the rand function could accept 3 digits or I would have done rand 1 255
That was the reason for floating but then it worked beautifully so I left it.
Logged

ashitaka666
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 71


Pic from 2 years ago.


WWW
ashes666101666

myServer 66.150.214.229:27015
(Warning: click connects through Steam)
« Reply #13 on: March 20, 2009, 05:56:32 PM »

Well the problem is on the server they are coded with much more complexity and it is very difficult to post it on here. Partially because it would be like a 10 part install into like 6 or 7 files.

I tried to share this one or other complex ones (for example my Ironman race) and I get bombarded with people who can't install it because it is too complex, and they need help.

What I do is when I make races that aren't too complex like this one I code it down a bit so it is easier to install and share it.

Unfortunately it means you get the simpler version, but hey I think for the most part I share a LOT ofd cool stuff with everyone.



Well oddity if you're worried about people not being able to figure it out I'd prob say still post it Smiley or hell send me your more complex races.

For example when I noticed I didnt have a event player_footstep in my es_wcs I made a event player_footstep and the event player_jump I it can be added right under event player_jump ill post the snippet of code. tell me if it's correct im sure it is but like to double check Cheesy.


Code
GeSHi (eventscripts):
event player_jump
(Oddity Code)
{
es_xsetinfo wcs_jumpinvis 0
es es_xkeygetvalue wcs_jumpinvis WCSuserdata event_var(userid) jumpinvis
es es_xif (server_var(wcs_jumpinvis) != 0) do
{
  es est_setplayercolor event_var(userid) 255 255 255 0 1  
  es est_effect 4 #a 0 sprites/lgtning.vmt event_var(userid) 1 10 10 3 25 25 25 200
  es es_xdelayed 1.5 est_setplayercolor event_var(userid) 255 255 255 255 1
}
(End of Oddity Code)
 // fix for losing gravity when climbing ladders
 es_exists ex key WCSuserdata event_var(userid)
 ifx true(ex) do
 {
   es_keygetvalue wcs_gravity WCSuserdata event_var(userid) gravity
   if (server_var(wcs_gravity) != "0") then est_SetGravity event_var(userid) server_var(wcs_gravity)
   es_keygetvalue wcs_silent WCSuserdata event_var(userid) silentwalk
   if (server_var(wcs_silent) != "0") do
   {
     es_keygetvalue wcs_tmp WCSuserdata event_var(userid) jumptoggle
     ifx false(wcs_tmp) do
     {
       es_keysetvalue WCSuserdata event_var(userid) jumptoggle 1
       wcs_getlanguage wcs_lng wcs_lng_s_amuleta0
       es_setplayerprop event_var(userid) CBasePlayer.m_fFlags 1
     }
     ifx true(wcs_tmp) do
     {
       es_keysetvalue WCSuserdata event_var(userid) jumptoggle 0
       wcs_getlanguage wcs_lng wcs_lng_s_amuleta
       es_delayed 1.0 es_xsetplayerprop event_var(userid) CBasePlayer.m_fFlags 2
     }
     es_tell event_var(userid) #multi server_var(wcs_lng)
   }
   es_keygetvalue wcs_longjump WCSuserdata event_var(userid) longjump
   if (server_var(wcs_longjump) != "0") do
   {
     if (server_var(wcs_longjump) < 1) then es_xset wcs_longjump 1
     // calculate the new velocy for jumping
     es_getplayerprop wcs_tmp event_var(userid) CCSPlayer.baseclass.localdata.m_vecVelocity[0]
     es_math wcs_tmp * server_var(wcs_longjump)
     es_getplayerprop wcs_tmp1 event_var(userid) CCSPlayer.baseclass.localdata.m_vecVelocity[1]
     es_math wcs_tmp1 * server_var(wcs_longjump)
     es_format wcs_tmp "%1,%2,0" server_var(wcs_tmp) server_var(wcs_tmp1)
     es_setplayerprop event_var(userid) CBasePlayer.localdata.m_vecBaseVelocity server_var(wcs_tmp)
   }
 }
}


Thanks

Ashi
Logged

[Oddity]TeacherCreature
Moderator
Level 7 Master
*****
Offline Offline

United States United States

Posts: 1358



WWW
bonggged

myServer 63.209.33.64:27015
(Warning: click connects through Steam)
« Reply #14 on: March 21, 2009, 12:37:49 AM »

Looks good!
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 02:24:50 AM
Write "ME" if I helped you.
Anyone. Smiley
Today at 02:23:28 AM
YES Cheesy
Today at 02:23:22 AM
Cheesy
Today at 02:22:14 AM
And they always Gets Help to.?
"YES" "NO"
Who have i helped here write me inn shoutbox pls. Smiley
Today at 02:21:30 AM
Yeah.
Cheesy
Today at 02:10:45 AM
That you are always here to help anybody Tongue
July 09, 2009, 10:41:33 PM
Whats True ?
Recent
[Today at 03:43:36 AM]

[Today at 02:17:29 AM]

[Today at 01:03:25 AM]

[Today at 12:43:41 AM]

[July 09, 2009, 11:24:52 PM]

by maze
[July 09, 2009, 09:58:44 PM]

[July 09, 2009, 07:32:56 PM]

[July 09, 2009, 07:16:53 PM]

[July 09, 2009, 04:33:01 PM]

[July 09, 2009, 12:04:26 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.173 seconds with 25 queries.