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-05-22 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 22, 2008, 07:58:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Races and Items added into Download section from our great Race Coders!
Such as HOLLIDAY|NovaKiller|Stinkyfax|Frodo|TeacherCreature|Phat_Wizard
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: player_spawn_cmd is being executed for Spectators  (Read 67 times)
mnestroy
Level 0 Beginner

Offline Offline

Posts: 6



« on: May 19, 2008, 03:05:14 AM »

I'm a bit confused cause the player_spawn_cmd is being executed even if a player is a spectator.   The code associated gets executed at the start of each round (even if they are in spectate)

This has become a problem because this is where I code such things as removing and giving of weapons... This becomes a real problem when I give a spectator a weapon and then the person they are watching has a gun floating over their heads, and then can even go as far as droping the gun.

Any ideas?
Logged
Espeladden
Pwning ultra sexy beastly hot legend
Level 7 Expert
*****
Online Online

Norway

Posts: 567



WWW
Gastingor
Mursat

myServer 89.145.98.208:27015
(Warning: click connects through Steam)
« Reply #1 on: May 19, 2008, 04:06:45 PM »

How does a spawn command work for someone that never spawns?
It just doesnt make sence at all
Logged

mnestroy
Level 0 Beginner

Offline Offline

Posts: 6



« Reply #2 on: May 20, 2008, 04:36:51 AM »

That is my point, the code is being executed at the start of a round regardless if a player is in a team or not.

This typically is not an issue but If I do any weapon stripping or giving this also gets done on the spectator.

I have added some extra code but Its kinda a pain

Code
GeSHi (eventscripts):
es_xgetplayerteam wcs_team event_var(userid);es es_xif (server_var(wcs_team) != 1) then racealias_kodspn

This may be poor coding on my end or something weird that is causing this issue...
Logged
Berettonawak
Level 7 Expert
*****
Offline Offline

France France

Posts: 487


Big Berettonawak is watching you...


WWW
Berettonawak
Berettonawak

myServer 81.93.59.99:30000
(Warning: click connects through Steam)
« Reply #3 on: Today at 11:08:19 AM »

...
this is cause team 1 = spec...
team 2 = T
team 3 = CT
Logged

French Warcraft Coder and Famas Owner...
mnestroy
Level 0 Beginner

Offline Offline

Posts: 6



« Reply #4 on: Today at 04:38:19 PM »

...
this is cause team 1 = spec...
team 2 = T
team 3 = CT


No i added that code to prevent the command form being executed.  I shouldn't need to have this snippet of code.
Logged
Berettonawak
Level 7 Expert
*****
Offline Offline

France France

Posts: 487


Big Berettonawak is watching you...


WWW
Berettonawak
Berettonawak

myServer 81.93.59.99:30000
(Warning: click connects through Steam)
« Reply #5 on: Today at 05:57:13 PM »

well i can't guess if you don't post the racealias  .
excuse me, i was wrong...

but the code shouldn't be executed for spec...
espeladden is right, why would you exec a spawn cmd for someone who doesn't spawn?
try reinstalling es, est...
Logged

French Warcraft Coder and Famas Owner...
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
May 21, 2008, 07:21:28 PM
Looking for DODS Testers for WCSPython! Please PM me if interested.

~J3ff
May 21, 2008, 12:10:15 AM
sORRY SAID ID ADD SOME WCS MAPS BUT BEEN SUPER BUSY, Will add some very soon.
May 20, 2008, 08:17:49 PM
Hm... i made some interestng NEW skills in nmy race... bu there are only 4 of them... If you can help me please ihttp://warcraft-source.com/board/index.php/topic,4294.0.html
May 19, 2008, 10:28:51 PM
Good! Nice to have people actually talking! Yeah, the only bad thing is finals hahaha, but I'm not worried. How about everyone else? How are you guys?
May 19, 2008, 09:44:44 PM
How's life?
May 19, 2008, 07:11:06 PM
..
May 15, 2008, 05:42:44 PM
I know but the beta is so buggy
Recent
[Today at 07:51:35 PM]

[Today at 07:48:16 PM]

[Today at 07:43:21 PM]

[Today at 07:39:42 PM]

[Today at 07:15:51 PM]

[Today at 07:06:25 PM]

[Today at 05:57:13 PM]

[Today at 05:01:09 PM]

[Today at 04:00:11 PM]

[Today at 03:50:10 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.068 seconds with 25 queries.