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

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: es and est question  (Read 62 times)
tintinibar
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 41



« on: March 21, 2008, 01:35:56 AM »

I am using es 1.5.0.171 and 0.417a for DOD:S and have the bug that when players with weapons given to them spectate the weapon flies around specced players. I tried to make a script to disarm the dead but it carries over when you spawn and knocks out the weapons granted to the living. Should I make a loop? Here is the code so far and it works except the side effect I listed. I am not going to update my es or est so I ned help from the versions I listed not "update to the newest es and est" thanks

block load
{
}
event player_spawn
{
  es_xset myvar 0
  es est_IsAlive myvar event_var(userid)
  if(event_var(es_userteam) > 1) then if(server_var(myvar) == 0) then es es_xdelayed 1.5 est_removeweapon event_var(userid) 1;es es_xdelayed 1.9 est_removeweapon event_var(userid) 2
}
Logged
kryptonite
<WCS coder>
Administrator
Level 7 Expert
*****
Offline Offline

Germany Germany

Posts: 1097



WWW
sp0nk

myServer 85.190.38.232:27015
(Warning: click connects through Steam)
« Reply #1 on: March 21, 2008, 02:20:44 AM »

why you remove them when spawning?

isnt this better?

Code
GeSHi (eventscripts):
block load
{
es_log Super-Anti-DOD-Spec-Bug loaded
}
 
event player_spawn
{
 es_xset myvar 0
 es est_IsAlive myvar event_var(userid)
 ifx parse("es_userteam > 1 AND myvar == 0") do
 {
   es_delayed 1.5 est_removeweapon event_var(userid) 1
   es_delayed 1.9 est_removeweapon event_var(userid) 2
 }
}

you cannot make if(..) and then two commands, separated by ;
you need to make an if(..) do { .... } for two or more commands
Logged

(click to show/hide)
tintinibar
Level 2 Apprentice
**
Offline Offline

United States United States

Posts: 41



« Reply #2 on: April 17, 2008, 04:06:36 AM »

I will try it thanks for not doing what 100% of other people would do and disregard my post.   
I'm sure I have searched the forums for the fix but thank you for getting me there.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 30, 2008, 11:39:24 AM
HOLLIDAYS botchangerace script is also to be found in the downloads section
April 30, 2008, 11:34:31 AM
WCS Map CageFight added into Downloads
April 30, 2008, 01:54:03 AM
Yea cause WCSP is the future and I almost got backwards support fully working so very little reason not to use it over 0.7x now...

~J3ff
April 30, 2008, 12:27:18 AM
They were DIFFERENT links: n0Life gave link to WCS 0.77 and J3ff gave link to WCS:Python
April 29, 2008, 09:53:54 PM
i meant, That n0life Gave a link...
April 29, 2008, 09:52:53 PM
Jeff why the Double post?
April 29, 2008, 09:48:46 PM
Recent
[Today at 07:46:36 PM]

[Today at 07:02:44 PM]

[Today at 06:58:30 PM]

[Today at 06:56:40 PM]

[Today at 06:49:58 PM]

[Today at 05:11:43 PM]

[Today at 03:46:09 PM]

[Today at 11:33:58 AM]

[Today at 11:28:48 AM]

[Today at 08:16:43 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.061 seconds with 26 queries.