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-09-15 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
September 15, 2009, 07:13:17 PM *
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.
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: Blue Mole (yeah I searched)  (Read 117 times)
ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« on: August 24, 2009, 10:53:54 PM »

Hi,

I know this has been asked a million times before and I've tried to fix this a couple of times but to no avail. The blue coloured mole is a bug within WCS itself and after searching here I found the answer, I just don't know what to do with it. So someone who does, please explain!

I got into the es_WCSultimates.txt file, and found the block mole_activate
If I understood correctly the set_playercolor code should be put below the est_setmodel part like I did below, but it doesn't work.

Code:
if(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (server_var(wcs_team) = 3) then est_SetModel server_var(wcs_uid) "player/t_phoenix"
es est_setplayercolor event_var(userid) 255 255 255 255 1
if(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (server_var(wcs_team) = 2) then est_SetModel server_var(wcs_uid) "player/ct_urban"
es est_setplayercolor event_var(userid) 255 255 255 255 1

Should it work like this or am I going at it the wrong way?
Logged
ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« Reply #1 on: August 31, 2009, 12:06:02 AM »

Ok finally fixed it. Since it's been a week and noone responded to this I'm not feeling like posting the fix. Do want to thank those who ignored it since I learned yet another useful thing. Those who want the answer to this problem are free to send me a PM though.
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2236



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #2 on: August 31, 2009, 09:23:07 AM »

http://warcraft-source.com/board/index.php/topic,5842.0.html
http://warcraft-source.com/board/index.php/topic,7730.0.html
http://warcraft-source.com/board/index.php/topic,7000.0.html

http://warcraft-source.com/board/index.php/topic,6125.msg47281.html#msg47281

http://warcraft-source.com/board/index.php/topic,7765.msg55491.html#msg55491
Logged

ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« Reply #3 on: August 31, 2009, 10:20:33 AM »

I have read all those topics Holliday, none of them contained a clear answer. Remember most of the people who come and seek help about this know nothing about coding races.

Ok fine, I'll explain how I did it, it's different then what you did:

In Warden the skill1_cmd looks like this now:
Code:
"skill1_cmd"        "if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdelayed 1 wcs_mole_activate event_var(userid); if (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xdelayed 2 est_setplayercolor event_var(userid) 255 255 255 255 1"

Done the same in Chameleon, this is the entire racealias_cham_sp line in skill 1:
Code:
"racealias_cham_sp" "if (server_var(wcs_tmp) = 1) then est_Health event_var(userid) + 70;if (server_var(wcs_tmp) = 2) then est_speed event_var(userid) 1.3;if (server_var(wcs_tmp) = 3) then es_xkeysetvalue WCSuserdata event_var(userid) longjump 1.15;if (server_var(wcs_tmp) = 4) then es_xdelayed 2 est_SetGravity event_var(userid) 0.8;if (server_var(wcs_tmp) = 5) then es_xdelayed 1 wcs_mole_activate event_var(userid);if ((server_var(wcs_tmp) = 5) then es_xdelayed 2 est_setplayercolor event_var(userid) 255 255 255 255 1;if (server_var(wcs_tmp) = 6) then es_xkeysetvalue WCSuserdata event_var(userid) regeneration 1;if (server_var(wcs_tmp) = 6) then es_xkeysetvalue WCSuserdata event_var(userid) regen_round server_var(wcs_roundcounter);if (server_var(wcs_tmp) = 6) then wcs_regeneration event_var(userid) 3 4 150 15 0"

Anyone who has this problem with these races just replace the codes with these.
« Last Edit: August 31, 2009, 12:27:27 PM by ИЭЯΌ » Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2236



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #4 on: August 31, 2009, 11:03:05 AM »

your topic is misleading , lol
 "(yeah I searched)" makes

i searched and found the answer
 
  look like
i searched and didn't find the answer .. lol
..misread that bit


the reason the color doesn't set in your block is that your setting wcs_uid's model and setting userid's color

you can change event_var(userid) to server_var(wcs_uid)

or replace est_setmodel with  es playerset model

Code:
if(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (server_var(wcs_team) = 3) then  es playerset model server_var(wcs_uid) "player/t_phoenix"
if(server_var(wcs_game) = server_var(wcs_game_css)) then es_xif (server_var(wcs_team) = 2) then  es playerset model server_var(wcs_uid) "player/ct_urban"

this is all you really need

Code:
if (server_var(wcs_team) = 3) then es playerset model server_var(wcs_uid) player/t_phoenix
if (server_var(wcs_team) = 2) then es playerset model server_var(wcs_uid) player/ct_urban


 
Code:
if (server_var(wcs_game) != server_var(wcs_game_css)) then quit

Logged

ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« Reply #5 on: August 31, 2009, 12:26:21 PM »

Well the title was on purpose since I know lots of topics were made about this problem, so I wanted to make clear that I DID search before making that topic. So actually you were right the first time, what I meant to say was 'Yeah I searched, but didn't find the answer', but then in a way of 'I searched, found the answer, but don't know how to use it', so in a way I did but actually I didn't really find the answer to my problem. I'm even confusing myself now haha. Grin

But thanks for the clear answer. Instead of setting the color after setting the model the buggy way you can actually set it right at once, that's interesting.

But what to do with the last code you put there? Does the 'quitting' go directly under the phoenix and urban lines?

PS: In my reply to your post with all the urls I started the sentence with 'Read all those topics Holliday' which sounds different then what I meant, edited and now it says 'I have read all those topics' haha. Wink
« Last Edit: August 31, 2009, 12:29:21 PM by ИЭЯΌ » Logged
finemaster
Level 0 Beginner

Offline Offline

Russian Federation

Posts: 2



« Reply #6 on: September 06, 2009, 11:25:13 AM »

Tnx for fully answer, Hollyday, but
"Does the 'quitting' go directly under the phoenix and urban lines?"
Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2236



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #7 on: September 06, 2009, 11:35:47 PM »

no dont use that last bit, lol
that was just a joke.. meaning if the game is not CSS then quit
Logged

Shidobu
Level 3 Trained Apprentice
***
Offline Offline

United States United States

Posts: 74




shidobuassailant
« Reply #8 on: September 07, 2009, 02:29:17 AM »

would the quit really work? like if i would do this to someone with rcon est_cexec playername quit it wouldnt work..
Logged

Enjoy
Yiyas
Level 2 Apprentice
**
Online Online

United Kingdom

Posts: 58




no1yiyas
no1yiyas
« Reply #9 on: September 07, 2009, 05:35:33 AM »

No it would just shut down the server.
Logged
ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« Reply #10 on: September 10, 2009, 11:59:03 PM »

no dont use that last bit, lol
that was just a joke.. meaning if the game is not CSS then quit

lmao Grin
Logged
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2555


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #11 on: September 11, 2009, 12:32:15 PM »

would the quit really work? like if i would do this to someone with rcon est_cexec playername quit it wouldnt work..
est_cexec is concerning CLIENT commands Smiley
You cannot exec all client commands from server, only a few.
In hollidays code, quit is a console command Smiley
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
Quote from: myself
i love tuna juice Cheesy
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 2236



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #12 on: September 12, 2009, 12:58:36 PM »

was just pointing out some pointless code that isn't needed anymore
WCS does not work on DOD:S any more so no need for the check

if for some reason wcs_game != wcs_game_css then you might as well quit what your doing,
Logged

ИЭЯΌ
Level 5 Trained Intermediate
*****
Offline Offline

Netherlands Netherlands

Posts: 107



WWW
ИЭЯΌ
knightmirrr

myServer 213.163.93.63:27015
(Warning: click connects through Steam)
« Reply #13 on: Today at 02:51:42 AM »

Ah ok, guess I'll go and clean up some code then. Smiley
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 06:55:09 PM
is this  graphic card good for css or cod4...Integrated GMA 4500MHD Graphics
Today at 06:38:41 PM
 none works i spend 100$ and those none works....but good thing i get money back lol....
Today at 10:56:23 AM
none
Today at 05:19:03 AM
Meaning, no POST screen? POST saying information about your PC.
Today at 02:59:31 AM
probably the PSU, could be the mobo too though
Today at 02:14:10 AM
If you'd pass me your PC, i'll fix it
September 14, 2009, 11:46:35 PM
no idea..here night i turn off computer and went to sleep than woke up next day and turn on computer than it won't  turn on anything just only my desktop led light...pissing me off so now im gonna buy computer that has warranty on it like smart way
Recent
[Today at 06:49:47 PM]

[Today at 03:52:40 PM]

[Today at 03:51:45 PM]

[Today at 01:37:27 PM]

[Today at 01:31:31 PM]

[Today at 01:12:16 PM]

[Today at 01:11:02 PM]

[Today at 01:05:29 PM]

[Today at 12:19:09 PM]

[Today at 05:04:05 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 2.401 seconds with 22 queries.