October 22, 2019, 02:41:53 PM

Author Topic: Blue Mole (yeah I searched)  (Read 2913 times)

Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Blue Mole (yeah I searched)
« on: August 24, 2009, 11: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: [Select]
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?

Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Re: Blue Mole (yeah I searched)
« Reply #1 on: August 31, 2009, 01: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.


Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Re: Blue Mole (yeah I searched)
« Reply #3 on: August 31, 2009, 11: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: [Select]
"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: [Select]
"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, 01:27:27 PM by ИЭЯΌ »

Offline HOLLIDAY

  • <Race Maker>
  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 2851
  • Country: 00
  • of all the things ive lost i miss my mind the most
    • HOLLIDAYWCS.COM
Re: Blue Mole (yeah I searched)
« Reply #4 on: August 31, 2009, 12:03:05 PM »
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: [Select]
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: [Select]
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: [Select]
if (server_var(wcs_game) != server_var(wcs_game_css)) then quit

Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Re: Blue Mole (yeah I searched)
« Reply #5 on: August 31, 2009, 01: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. ;D

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. ;)
« Last Edit: August 31, 2009, 01:29:21 PM by ИЭЯΌ »

Offline finemaster

  • Level 0 Beginner
  • Posts: 3
Re: Blue Mole (yeah I searched)
« Reply #6 on: September 06, 2009, 12:25:13 PM »
Tnx for fully answer, Hollyday, but
"Does the 'quitting' go directly under the phoenix and urban lines?"

Offline HOLLIDAY

  • <Race Maker>
  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 2851
  • Country: 00
  • of all the things ive lost i miss my mind the most
    • HOLLIDAYWCS.COM
Re: Blue Mole (yeah I searched)
« Reply #7 on: September 07, 2009, 12:35:47 AM »
no dont use that last bit, lol
that was just a joke.. meaning if the game is not CSS then quit

Offline MiBShidobu

  • Level 7 Expert
  • *****
  • Posts: 1620
  • Country: us
Re: Blue Mole (yeah I searched)
« Reply #8 on: September 07, 2009, 03: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..
Quote from: Tha Pwned
2:35 PM - La Muerte: pwned + forum = fail
2:36 PM - Tha Pwned: +1
2:36 PM - Tha Pwned: Don't quote

Offline Yiyas

  • Level 7 Expert
  • *****
  • Posts: 494
  • Country: 00
  • The name's Bugger. De-Bugger.
Re: Blue Mole (yeah I searched)
« Reply #9 on: September 07, 2009, 06:35:33 AM »
No it would just shut down the server.
I watch porn for the music.

Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Re: Blue Mole (yeah I searched)
« Reply #10 on: September 11, 2009, 12:59:03 AM »
no dont use that last bit, lol
that was just a joke.. meaning if the game is not CSS then quit

lmao ;D

Offline Berettonawak

  • French
  • Level 7 Expert
  • *****
  • Posts: 3147
  • Country: 00
  • Big Berettonawak is watching you...
    • Coding-Alliance.Com : A bunch of coders? Why not a bunch of players? :P
Re: Blue Mole (yeah I searched)
« Reply #11 on: September 11, 2009, 01: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 :)
You cannot exec all client commands from server, only a few.
In hollidays code, quit is a console command :)
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 :D
Quote from: Pietro
=CA= Pietro: back
=CA= Pietro: sorry, was downstair sharing my chocolate with my cat
=CA= Pietro: you should see his face when he ate it xD
Quote from: myself
=CA= Berettonawak: just because you don't have hope doesn't mean we're doomed

Offline HOLLIDAY

  • <Race Maker>
  • Watchdog
  • Level 7 Expert
  • *****
  • Posts: 2851
  • Country: 00
  • of all the things ive lost i miss my mind the most
    • HOLLIDAYWCS.COM
Re: Blue Mole (yeah I searched)
« Reply #12 on: September 12, 2009, 01: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,

Offline ИЭЯΌ

  • Level 5 Trained Intermediate
  • *****
  • Posts: 113
    • Leϯhal Zone EU CS(:S)/TF2/L4D Community
Re: Blue Mole (yeah I searched)
« Reply #13 on: September 15, 2009, 03:51:42 AM »
Ah ok, guess I'll go and clean up some code then. :)