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-04-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
April 15, 2008, 11:55:44 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Current Official Servers:
#1 - 207.210.236.112:27015 Location US
#2 - 85.190.38.232:27015 Location Amsterdam
| Tick@100 | wcs 0.77 | Mani |
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Current Topic Rating: ***** You have not rated this topic. Select a rating:
Author Topic: [Oddity]Ninja  (Read 960 times)
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« on: September 23, 2007, 06:31:33 AM »


In the history of Japan, a ninja (忍者, ninja?) was someone specially trained in a variety of unorthodox arts of war. These included assassination, espionage, and other martial arts. In the Japanese culture, they were usually trained for dangerous missions.

Skill1 - Ninja Speed      -Ninjas speed rushes to surprise their victims
Skill2 - Martial Arts        -Melee attack and knock enemies into the air
Skill3 - Deadly Assassin   -Use your knowledge of deadly strikes (Xtras dmg)
Skill4 - Ninja Rush          -Fast Stealthy Attack (destroy victim before they know what hit them)


Installation Instructions:

3 parts..  RACEFILE - DALIAS - SOUND

1.Racefile

Code:
"oddity.counter-strike.com"
  {
    "name"              "[Oddity]Ninja"
    "author"            "[Oddity]TeacherCreature"
    "shortdescription"  "Art of stealth and up close assassination"
    "required_level"    "0"
    "allow_only"        "0"
    "preloadcmd"        "0"
    "player_spawn_cmd"  "es es_xdelayed 0.4 est_RestrictAll event_var(userid);es es_xdelayed 0.6 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 0.8 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 0.9 est_unrestrict event_var(userid) item_defuser;es es_xdelayed 1.2 est_unrestrict event_var(userid) weapon_smokegrenade;es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_flashbang;es es_xdelayed 1.6 es_xgive event_var(userid) weapon_knife;es ma_render_fx event_var(userid) 13;es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es est_effect 11 #a 0 editor/phys_ballsocket.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 2 5 100"
    "round_start_cmd"   "0"
    "round_end_cmd"     "0"
    "numberofskills"    "4"
    "numberoflevels"    "5"
    "skillnames"        "Ninja Speed|Martial Arts|Deadly Assassin|Ninja Rush"
    "skilldescr"        "Ninjas employ sudden rushes to surprise their victims|Melee attack and knock enemies into the air|Use your knowledge of deadly strikes|Fast Stealthy Attack"
    "skillcfg"          "player_spawn|player_attacker|player_attacker|player_ultimate"
 
    "skill1_setting"    "es_xsetinfo wcs_tmp4 7|es_xsetinfo wcs_tmp4 6|es_xsetinfo wcs_tmp4 5|es_xsetinfo wcs_tmp4 4|es_xsetinfo wcs_tmp4 3"
    "racealias_nja11"   "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed server_var(wcs_tmp4) wcs_dalias racealias_nja12 server_var(wcs_tmp2) server_var(wcs_tmp2) 1"
    "racealias_nja12"   "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_nja13;racealias_nja11"
    "racealias_nja13"   "es est_speed server_var(wcs_tmp2) 1.9;es es_delayed 0.7 est_speed server_var(wcs_tmp2) 1"
    "skill1_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_nja11"
    "skill1_sfx"        "0"

    "skill2_setting"    "es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 35|es_xsetinfo wcs_chance 40|es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 50"
    "racealias_nja21"   "es est_physpush event_var(userid) 0 0 400;es es_xtell event_var(attacker) #multi #lightgreen Strike with #green Martial Arts"
    "skill2_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (event_var(weapon) = knife) then racealias_nja21"
    "skill2_sfx"        "0"

    "skill3_setting"    "es_xsetinfo wcs_chance 18|es_xsetinfo wcs_chance 21|es_xsetinfo wcs_chance 24|es_xsetinfo wcs_chance 27|es_xsetinfo wcs_chance 30"
    "racealias_nja31"   "es wcs_dealdamage event_var(attacker) event_var(userid) 50;es es_xtell event_var(attacker) #multi #lightgreen DEADLY #greenSTRIKE"
    "skill3_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (event_var(weapon) = knife) then racealias_nja31"
    "skill3_sfx"        "0"

    "skill4_setting"    "es_xsetinfo wcs_tmp4 400|es_xsetinfo wcs_tmp4 400|es_xsetinfo wcs_tmp4 500|es_xsetinfo wcs_tmp4 600|es_xsetinfo wcs_tmp4 700"
    "racealias_nja41"   "es_setinfo wcs_tmp2 server_var(wcs_userid);es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_nja42"
    "racealias_nja42"   "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_tmp4) server_var(wcs_tmp2) racealias_nja43"
    "racealias_nja43"   "es es_xgetplayername wcs_name server_var(wcs_targetid);es est_playplayer server_var(wcs_name) oddity/ninjarush.wav;es es_delayed 0.2 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 0.7 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 1.2 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 1.7 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 2.2 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 2.7 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 3.2 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 3.7 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 4.2 est_teleport server_var(wcs_tmp2) server_var(wcs_name);es es_delayed 4.7 est_teleport server_var(wcs_tmp2) server_var(wcs_name)"
    "skill4_cmd"        "racealias_nja41"
    "skill4_sfx"        "es est_playplayer server_var(wcs_userid) oddity/ninjarush.wav"
    "ultimate_cooldown" "10|9|8|7|6"
  }

2.DALIAS
This Code must be entered into your Ultimates text file(2 PARTS)

Part 1.  This goes on the top of the file:

Code:
es_xexists wcs_exists command wcs_dalias
es es_xif (server_var(wcs_exists) = 0) then es_xregcmd wcs_dalias wcs/WCSultimates/wcs_dalias "delayed aliases"


Part 2. This goes further down to create it's own block

Code:
block wcs_dalias
{

if (server_var(wcs_debug) = "1") then echo wcs_dalias start
   es_xsetinfo wcs_tmp1 0
   es_xsetinfo wcs_tmp2 0
   es_xsetinfo wcs_tmp3 0
   es_xsetinfo wcs_tmp4 0
   es_xsetinfo wcs_tmp5 0
   es_xsetinfo wcs_tmp6 0
   es_xsetinfo wcs_tmp7 0
   es_xsetinfo wcs_tmp8 0
   es_xsetinfo wcs_tmp9 0
   es_xsetinfo wcs_tmp10 0
   es_xsetinfo wcs_tmp11 0
   es_xsetinfo wcs_tmp12 0
   es_xsetinfo wcs_tmp13 0
   es_xsetinfo wcs_tmp14 0
   es_xsetinfo wcs_tmp15 0
   es_xgetargv wcs_tmp1 1
   es_xgetargv wcs_tmp2 2
   es_xgetargv wcs_tmp3 3
   es_xgetargv wcs_tmp4 4
   es_xgetargv wcs_tmp5 5
   es_xgetargv wcs_tmp6 6
   es_xgetargv wcs_tmp7 7
   es_xgetargv wcs_tmp8 8
   es_xgetargv wcs_tmp9 9
   es_xgetargv wcs_tmp10 10
   es_xgetargv wcs_tmp11 11
   es_xgetargv wcs_tmp12 12
   es_xgetargv wcs_tmp13 13
   es_xgetargv wcs_tmp14 14
   es_xgetargv wcs_tmp15 15
es server_var(wcs_tmp1)
if (server_var(wcs_debug) = "1") then echo wcs_dalias end
}

3.SOUND
The race uses a custom sound (which I included) for skill4. It must be made downloadable.

Please add the oddity folder to your sound folder:
Code:
Sound/oddity/ninjarush.wav
You will need to make this sound file downloadable there are two ways I can think of to do this.
method 1 (you need mani admin)
and you'll need to put this in downloads in mani-admin-plugin
Code:
"downloads.txt"
{
   // Add any files you wish to have downloaded to a clients system in here
   // The key can be any name you wish.
   // The value must be the location on your server of the file

   "downloads"
   {
      "my_file"   "materials/decals/custom/mani_admin_plugin/mani_logo.vmt"
      "ninja"     "sounds/oddity/ninjarush.wav"
   }
}

For those users without mani admin
method 2 eventscript (i know you all have this)
Change your autoexec.cfg file or server.cfg or however you load your server and add...  (this is for method 2 only)
Code:
es_load skins

Create a folder cstrike/addons/eventscripts/skins
Create a text file in this folder called es_skins.txt
Copy paste this into the file....

Code:
block load
{
    // Mark a sound as downloadable.

    downloadable sound/oddity/ninjarush.wav
}
event es_map_start
{
    // We must mark it as downloadable again on map change.
   
    downloadable sound/oddity/ninjarush.wav
}

 [Oddity] Ninja.rar (13.56 KB - downloaded 73 times.)
« Last Edit: October 01, 2007, 02:39:01 AM by [Oddity]TeacherCreature » Logged

::wavez::
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 55


We need some flaming homeless people flying around


WWW
::two Kings:: wavez
« Reply #1 on: December 30, 2007, 04:02:23 AM »

in your skill1 (ninja speed) you describe it as sudden bursts of speed and i see the dalias there.

So does this race not have enhanced speed all the time?

I would go install it but...

I'd rather ask you 
Logged

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

United States United States

Posts: 567



WWW
« Reply #2 on: December 31, 2007, 01:06:33 AM »

Yes every second or two you get a speed boost for like half a second

So as you move it has a weird SLOW FAST SLOW FAST SLOW FAST effect and it makes it interesting to get used to but people dont seem to hit you as often...
Works real well with long jump
Logged

::wavez::
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 55


We need some flaming homeless people flying around


WWW
::two Kings:: wavez
« Reply #3 on: December 31, 2007, 01:34:16 AM »

Oooh i like that.

I only asked because i am making a Ninja type race and i didnt want just a boring wcs_speed #.##.

i might try that if its ok with you's.
Logged

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

United States United States

Posts: 567



WWW
« Reply #4 on: December 31, 2007, 01:59:45 AM »

Yes go ahead....

This was an earlier race and in beta on my server for awhile...
So give it a shot and fiddle with changing the delay around thats what I did untill I liked it
Logged

Morph
Level 7 Expert
*****
Offline Offline

United Kingdom

Posts: 183



« Reply #5 on: January 15, 2008, 07:17:07 PM »

im not sure u ment for it to be like that but the speed thing is very nice lol, real ninjas wud crawl very quitely, then sudden speed boosts, and fyi, they only train in one martial art, ninjutsu
Logged
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #6 on: January 15, 2008, 10:38:15 PM »

Yes that is exactly how I meant it to be.
Logged

Captn Noob pwner 5000
Level 0 Beginner

Offline Offline

Canada Canada

Posts: 4



« Reply #7 on: March 09, 2008, 11:36:20 PM »

what do you mean by the sound making folder part? please be VERY SPECIFIC

also, wtf do i do with the ninja.rar
« Last Edit: March 09, 2008, 11:49:19 PM by Captn Noob pwner 5000 » Logged
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 567



WWW
« Reply #8 on: March 15, 2008, 08:52:26 PM »

Please read this part up above


Code:
3.SOUND
The race uses a custom sound (which I included) for skill4. It must be made downloadable.

Please add the oddity folder to your sound folder:


The oddity folder is found in the rar attachment
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 14, 2008, 08:47:37 PM
Seconds u there
April 14, 2008, 06:57:57 PM
Ty see u there
April 13, 2008, 11:00:29 PM
@overfinch123, your application has been accepted
April 13, 2008, 10:10:47 PM
ESELADDEN I entered your WCS tournament i left a reply want me to send itt to you?
April 13, 2008, 10:09:54 PM
Eseladden u there?
April 13, 2008, 08:30:55 AM
WCSUsers db file, move that file
April 13, 2008, 06:24:38 AM
Hey guys how do I move levels to another server?
Recent
[Today at 11:21:51 PM]

[Today at 09:22:37 PM]

[Today at 08:18:30 PM]

by West
[Today at 08:14:12 PM]

by Jeff
[Today at 06:51:25 PM]

[Today at 06:08:09 PM]

[Today at 06:03:36 PM]

[Today at 05:50:59 PM]

[Today at 04:20:36 PM]

[Today at 02:50:39 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.058 seconds with 28 queries.