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-13 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 13, 2008, 11:41:49 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Remember to check on the FAQ before start posting.
It may save you time and effort.
Also here is the WCS Wiki!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: <teamlimit> and Spectators  (Read 63 times)
Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« on: December 10, 2008, 06:24:16 PM »

FILE es_WCSraces.txt
LINE 290

es_keygetvalue wcs_tmp1 "WCSraces" server_var(wcs_raceid) "2"
es_keygetvalue wcs_tmp2 "WCSraces" server_var(wcs_raceid) "3"
if (server_var(wcs_team) = "1") then es_xif (server_var(wcs_tmp1) > server_var(wcs_tmp2)) then es_xcopy wcs_tmp1 wcs_tmp2
if (server_var(wcs_team) = "1") then es_xif (server_var(wcs_tmp1) >= server_var(wcs_limit)) then es_xset wcs_limited "1"

Now it works only when limited race is in #t team.
Shoud it be changed to es_xcopy wcs_tmp2 wcs_tmp1?
Logged

Sorry for english
zangetsu
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 35




zangetsu
« Reply #1 on: December 11, 2008, 12:54:19 AM »

wait so what's this do?
Logged

Namolem
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 14



« Reply #2 on: December 11, 2008, 05:10:56 AM »

As i understand
Get number of people with limited races in #t team into temp1
Get number of people with limited races in #ct team into temp2
If temp1>temp2 copy temp2 to temp1, less in more
Logged

Sorry for english
Berettonawak
Watchdogs
Level 7 Expert
*****
Online Online

France France

Posts: 843


Big Berettonawak is watching you...



Bifkids

myServer 85.190.38.136:27016
(Warning: click connects through Steam)
« Reply #3 on: December 11, 2008, 04:40:14 PM »

if (server_var(wcs_team) = "1") then es_xif (server_var(wcs_tmp1) > server_var(wcs_tmp2)) then es_xcopy wcs_tmp1 wcs_tmp2
Shoud it be changed to es_xcopy wcs_tmp2 wcs_tmp1?
Yes Namolem, you are right. This would only work if CTs exceeded teamlimit...
For those who did not understand, here was what was written :
  - check how many Terrorists are using the race
  - check how many Counter-Terrorists are using the race do copy CT to T (which means that in our case, only the lowest value will be taken...)
  - if T > teamlimit do "too many players using this race!"
Krypto, we're waiting for you Tongue

And by the way, are the bugs i reported fixed?

http://warcraft-source.com/board/index.php/topic,5738.0.html
http://warcraft-source.com/board/index.php/topic,5091.0.html
Logged

zangetsu
Level 1 Trained Beginner
*
Offline Offline

United States United States

Posts: 35




zangetsu
« Reply #4 on: December 12, 2008, 04:36:46 AM »

is there a way to fix the glitch where if you go to spectator and you change races and go back it allows more than 1 player to be a restricted race. anyway to remedy that?
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
December 12, 2008, 11:37:45 PM
GGLife
December 12, 2008, 10:40:44 PM
HI IM AN ALCOHOLIC xD

ps : stan's dad
December 12, 2008, 07:28:22 PM
fine too Tongue
December 12, 2008, 06:21:52 PM
fine berett, u?
December 12, 2008, 05:41:25 PM
how are you guys?
December 12, 2008, 01:34:43 PM
the way i post it ? lol ? i just said look at this epic shiz.. and then some guy started out by me getting banned etc...
December 12, 2008, 01:28:50 PM
what do u mean ?
Recent
[Today at 11:39:36 AM]

[Today at 11:38:11 AM]

[Today at 10:58:39 AM]

[Today at 10:20:09 AM]

[Today at 08:00:25 AM]

[Today at 07:37:20 AM]

[Today at 06:30:02 AM]

[Today at 05:31:15 AM]

[Today at 01:33:38 AM]

[Today at 01:03:49 AM]
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.044 seconds with 26 queries.