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:22:48 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
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: Give flashbang skill broken : /  (Read 66 times)
Ryau
Level 0 Beginner

Offline Offline

United States United States

Posts: 5




Ryau
Ryau
« on: February 03, 2008, 01:41:24 AM »

The skill mostly works as intended, but instead of giving the player ONE flashbang, it keeps giving him flashbangs for a little while.

Code:
    "skill2_setting"    "es_xsetinfo wcs_tim1 20|es_xsetinfo wcs_tim1 16|es_xsetinfo wcs_tim1 12|es_xsetinfo wcs_tim1 10|es_xsetinfo wcs_tim1 6"
    "racealias_rya1"    "es es_xdelayed 2 racealias_rya2"
    "racealias_rya2"    "es est_IsAlive wcs_alive server_var(wcs_tim2);es est_KnifeOnly wcs_nonade server_var(wcs_tim2);es es_xif (server_var(wcs_alive) = 1) then es_xif (server_var(wcs_nonade) = 1) then es es_xdelayed server_var(wcs_tim1) racealias_rya3;racealias_rya1"
    "racealias_rya3"    "es_give server_var(wcs_tim2) weapon_flashbang;racealias_rya1"
    "skill2_cmd"        "es_setinfo wcs_nonade 0;es_setinfo wcs_alive 0;es_setinfo wcs_tim2 event_var(userid);racealias_rya1"
    "skill2_sfx"        "0"

What it is supposed to do (and does other than the give ONE flashbang part):

Wait 2 seconds, check if the player is alive, if he is then check if he has any grenades, if he doesn't then wait 20-6 seconds depending on skill level and then give him one flashbang and start over.

Note: This race has all restricted other than knife and flashbang
Logged
Google
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 13



« Reply #1 on: February 04, 2008, 07:40:33 PM »

I dont understand what u jsut said but heres somethign that gives u flashbangs


Code:
    "skill5_settings"   "es_xrand wcs_rand 1 12|es_xrand wcs_rand 1 11|es_xrand wcs_rand 1 10|es_xrand wcs_rand 1 9|es_xrand wcs_rand 1 8|es_xrand wcs_rand 1 7|es_xrand wcs_rand 1 6|es_xrand 1 5"
    "skill5_cmd"        "es es_xif (server_var(wcs_rand) <= 10) then est_give server_var(wcs_userid) weapon_flashbang;es es_xif (server_var(wcs_rand) <= 10) then es_xtell server_var(wcs_userid) #multi #Purple : You created a flashbang."
    "skill5_sfx"        "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(userid);es es_xif (server_var(wcs_rand) <= 10) then est_Effect 10 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 40 60 2 20 10 1 10 255 0 255 1"
    "ultimate_cooldown" "0"           
           
  }
Logged
Google
Level 0 Beginner

Offline Offline

United Kingdom

Posts: 13



« Reply #2 on: February 04, 2008, 07:41:27 PM »

I dont know if it will work
Logged
[H.F.M.]Rasmus{Chef}
WCS Supporter
Level 7 Expert
*****
Offline Offline

Denmark Denmark

Posts: 889




Rasmus4J
rasmus4j

myServer 85.190.17.115:27015
(Warning: click connects through Steam)
« Reply #3 on: February 08, 2008, 09:58:53 PM »

setting: es_xset wcs_chance <number>

cmd: if server_var(wcs_dice) <= server_var(wcs_chance) es est_give event_var(userid) weapon_flashbang
Logged

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.045 seconds with 25 queries.