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-07-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 01, 2008, 11:17:47 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]Sniper  (Read 766 times)
[Oddity]TeacherCreature
Moderator
Level 7 Expert
*****
Offline Offline

United States United States

Posts: 686



WWW

myServer 208.167.243.228:27015
(Warning: click connects through Steam)
« on: September 07, 2007, 06:40:59 PM »

This is my version of a scout only race... Different than boyscout or shaman.

A sniper is an infantry soldier who specializes in shooting from a concealed position over longer ranges than regular infantry, often with a specially designed or adapted sniper rifle. It requires skill in marksmanship, camouflage and field craft.

Skill1 Disguise - crucial to any sniper is his ability to blend in
Skill2 Scope Master - Marksmanship is key to all snipers
Skill3 Onebullet Onekill - Snipers need to target any nearby enemies If they get close to you they get beaconed
Skill4 Sniper - The ultimat sniper stays hidden.. If you get seen you must immediately go to a different area


This is a 2 part install READ IT ALL

Code:
  "oddity.counter-strike.com"                                 
  {
    "name"              "[Oddity]Sniper"       
    "author"            "[Oddity]TeacherCreature"         
    "shortdescription"  "Ambush is his specialty"               
    "required_level"    "500"             
    "maximum_level"     "0"             
    "allow_only"        "0"
    "teamlimit"         "0"             
    "preloadcmd"        "es_xsetinfo wcs_shamxp 0;es_xsetinfo wcs_shamcash 0"             
    "player_spawn_cmd"  "es est_stripplayer event_var(userid) 1;es es_xdelayed 1.1 est_RestrictAll event_var(userid);es es_xdelayed 1.6 est_unrestrict event_var(userid) weapon_scout;es es_xdelayed 1.4 est_unrestrict event_var(userid) weapon_knife;es es_xdelayed 1.8 est_unrestrict event_var(userid) weapon_c4;es es_xdelayed 1.8 est_unrestrict event_var(userid) item_defuser;es es_xdelayed 1.8 es_xgive event_var(userid) weapon_scout"               
    "round_start_cmd"   "0"               
    "round_end_cmd"     "0"               
    "numberofskills"    "4"             
    "numberoflevels"    "5"             
    "skillnames"        "Disguise|Scope Master|One bullet one kill|Sniper"   
    "skilldescr"        "You may spawn and look like the enemy|You get 10-40 XP and 20-150 money if you get a scout hit|You beacon enemies in order to track them|Snipers must never be seen"   
    "skillcfg"          "player_spawn|player_attacker|player_spawn|player_victim"     
   
    "skill1_setting"    "es_xsetinfo wcs_chance 10|es_xsetinfo wcs_chance 20|es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 50|es_xsetinfo wcs_chance 75"
    "racealias_snp11"   "es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) player/t_phoenix;es es_xif(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) player/ct_urban;es es_xif(server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (event_var(es_userteam) = 2) then est_SetModel event_var(userid) player/german_assault;es es_xif(server_var(wcs_game) = server_var(wcs_game_dods)) then es_xif (event_var(es_userteam) = 3) then est_SetModel event_var(userid) player/american_assault;es say_team I am disgused and look like the ENEMY. Don't shot at me."
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive event_var(userid);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xif (server_var(wcs_alive) = 1) then racealias_snp11"
    "skill1_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es_xmath wcs_z1 + 20;es_xmath wcs_z2 + 20;es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_Effect 3 #a 0 sprites/fireburst.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 0.5 5 10 129 145 252 200"
   
    "skill2_setting"    "es_xrand wcs_shamxp 10 15;es_xrand wcs_shamcash 20 30|es_xrand wcs_shamxp 15 20;es_xrand wcs_shamcash 30 45|es_xrand wcs_shamxp 20 25;es_xrand wcs_shamcash 45 60|es_xrand wcs_shamxp 30 35;es_xrand wcs_shamcash 75 100|es_xrand wcs_shamxp 35 40;es_xrand wcs_shamcash 100 150"
    "racealias_snp2"    "es est_cashadd event_var(attacker) server_var(wcs_shamcash);es wcs_givexp event_var(attacker) server_var(wcs_shamxp) 0 0;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_username) server_var(wcs_sucxp);es es_xtell event_var(attacker) #multi #Lightgreen : You gained #Green server_var(wcs_shamxp) XP #Lightgreen and #Green server_var(wcs_shamcash) $$ #Lightgreen for a scout hit;es es_xformat wcs_lng server_var(wcs_lng) event_var(es_attackername);es es_xtell event_var(userid) #multi #Lightgreen : You got hit by a scout. You gave enemy #Green XP #Lightgreen and #Green $$"
    "skill2_cmd"        "es es_xif (event_var(weapon) = scout) then racealias_snp2"
    "skill2_sfx"        "es es_xif (event_var(weapon) = scout) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (event_var(weapon) = scout) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 event_var(userid);es es_xif (event_var(weapon) = scout) then est_Effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 0.5 40 40 255 200 0 255"
 
    "skill3_setting"    "es_xsetinfo wcs_tmp4 0.2;es_xsetinfo wcs_tmp3 500|es_xsetinfo wcs_tmp4 0.3;es_xsetinfo wcs_tmp3 600|es_xsetinfo wcs_tmp4 0.4;es_xsetinfo wcs_tmp3 700|es_xsetinfo wcs_tmp4 0.5;es_xsetinfo wcs_tmp3 800|es_xsetinfo wcs_tmp4 0.6;es_xsetinfo wcs_tmp3 900"
    "racealias_snp31"   "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_snp32 server_var(wcs_tmp2) server_var(wcs_tmp3) server_var(wcs_tmp4)"
    "racealias_snp32"   "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then racealias_snp33"
    "racealias_snp33"   "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_snp34;racealias_snp31"
    "racealias_snp34"   "es es_xgetplayername wcs_name server_var(wcs_targetid);es ma_beacon server_var(wcs_name) 1;es es_xdelayed server_var(wcs_tmp4) ma_beacon server_var(wcs_name) 0;es_tell server_var(wcs_tmp2) Spotted server_var(wcs_name);es_tell server_var(wcs_name) Sniper spotted you"
    "skill3_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_snp31"
    "skill3_sfx"        "0"

    "skill4_setting"    "es_xsetinfo wcs_duration 2|es_xsetinfo wcs_duration 3|es_xsetinfo wcs_duration 4|es_xsetinfo wcs_duration 5|es_xsetinfo wcs_duration 6"
    "racealias_snp41"   "es est_setplayercolor server_var(wcs_userid) 255 255 255 0 1;es es_xdelayed server_var(wcs_duration) est_setplayercolor server_var(wcs_userid) 255 255 255 255 1
    "racealias_snp42"   "es est_Speed server_var(wcs_userid) 1.5;es es_xdelayed server_var(wcs_duration) est_Speed server_var(wcs_userid) 1"
    "racealias_snp43"   "es est_stripplayer server_var(wcs_userid) 1;es es_xdelayed server_var(wcs_duration) est_Give server_var(wcs_userid) weapon_scout;es es_xdelayed server_var(wcs_duration) est_Give server_var(wcs_userid) weapon_knife"
    "skill4_cmd"        "racealias_snp41;racealias_snp42;racealias_snp43;es es_xtell server_var(wcs_userid) #multi #Lightgreen You have been seen #green RELOCATE FAST!"
    "skill4_sfx"        "0"
    "ultimate_cooldown" "0"
  }


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
}
« Last Edit: September 09, 2007, 02:15:45 PM by [Oddity]TeacherCreature » Logged



Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 08:24:10 AM
28 more races to be added to my server, for more information please see: http://warcraft-source.com/board/index.php/topic,4529.0.html
June 30, 2008, 03:13:39 PM
June 29, 2008, 10:19:53 PM
Today is last day to get 150 levels free to put anywhere you want, http://warcraft-source.com/board/index.php/topic,4529.0.html for more info.
June 27, 2008, 12:30:27 AM
Website is live (looks sick) for my server and now also 100 tick! http://warcraft-source.com/board/index.php/topic,4529.0.html
June 24, 2008, 10:26:39 PM
omfg
June 24, 2008, 02:14:14 PM
ye.. i love her ! lolz !!!!!
June 24, 2008, 02:17:08 AM
omg! that hillarious

Petru FTW
Recent
by Jeff
[Today at 10:56:02 PM]

by Jeff
[Today at 10:55:11 PM]

by Jeff
[Today at 10:53:47 PM]

[Today at 10:19:53 PM]

[Today at 10:08:03 PM]

[Today at 10:05:36 PM]

[Today at 10:01:57 PM]

[Today at 09:55:28 PM]

by kano
[Today at 09:44:38 PM]

[Today at 09:43:52 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.077 seconds with 26 queries.