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-08-21 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
August 21, 2009, 12:48:18 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  
This topic has not yet been rated! You have not rated this topic. Select a rating:
Author Topic: Loop dont work every Time  (Read 37 times)
ScHigGn
Level 1 Trained Beginner
*
Offline Offline

Germany Germany

Posts: 34



« on: August 19, 2009, 12:43:46 PM »

why this loop dont work every time. If i am alone on my server the loop/skill works without Problems...
but if more Player on the server and some move or press Ultimate this loop dont work or break...

i dont know why...

Code:
block load
{
es_xset hidhun 0
es_xset hh_run 0
es_getcmduserid hidhun
     repeat create repeat_hh_run "es_xdoblock schiggn/hiddenhunter/runloop"
}
event player_duck
{
        repeat start repeat_hh_run 0.1
}

block runloop
{
es_getcmduserid hidhun
es_xset hh_run 0
es es_xkeygetvalue hh_run WCSuserdata server_var(hidhun) hh_run
if (server_var(hh_run) = 1) do
{
es_getcmduserid hidhun
es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(hidhun)
es est_effect 7 #a 0 sprites/smoke.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 10 100
}
}
Logged
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2505


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #1 on: August 19, 2009, 01:09:07 PM »

es_getcmduserid can't be used in this case (check the wiki for more informations).

What do you exactly wanna do?
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
ScHigGn
Level 1 Trained Beginner
*
Offline Offline

Germany Germany

Posts: 34



« Reply #2 on: August 19, 2009, 02:47:44 PM »

want to create Smoke on Playerposition, if player duck...

but if more than 1 people on Server, this dont work...
Logged
CA.Berettonawak
Le renommé méconnu...
Watchdogs
Level 7 Expert
*****
Offline Offline

France France

Posts: 2505


Big Berettonawak is watching you...


WWW
Bifkids
« Reply #3 on: August 19, 2009, 09:29:25 PM »

want to create Smoke on Playerposition, if player duck...

but if more than 1 people on Server, this dont work...
No need for a loop (on player_spawn), i advice you to go see this script:
http://addons.eventscripts.com/addons/view/extendedevents
It includes some player_duck and player_unduck event, from which you can easily make your skill Smiley
Logged

Quote from: N0life
Beret, keep yourself focusing on 1 project. Be sure to memorize that down since it sounds good.
ScHigGn
Level 1 Trained Beginner
*
Offline Offline

Germany Germany

Posts: 34



« Reply #4 on: August 19, 2009, 09:37:41 PM »

script is installed...

but if player_duck fire.... so the smoke get 1 Time...

so i make a loop.... player_duck start the loop, and player_unduck stop the loop...

but the loop dont work, if anybody press Ultimate or Move or something else...

if the loop work, and then anyone press Ultimate, the loop stop
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 12:39:42 PM
;o

Today at 09:52:03 AM
can an admin check my permissions so that i can view the forum,the front page,own messages and this box? lol.. would appreciate it
Today at 05:03:59 AM
ugh so exhausted worked 21 hours last 29 hours....
August 20, 2009, 09:05:08 PM
I have invalid time oh here :O Some body help ! help me!
August 20, 2009, 08:18:35 PM
4 days, 22 hours and 38 minutes.
August 20, 2009, 08:18:33 PM
im here longer then you :p
August 20, 2009, 08:13:08 PM
yea, but i have bin here the time i have bin logged inn,
Recent
[Today at 12:30:01 PM]

by M.R.
[Today at 11:10:48 AM]

[Today at 08:59:22 AM]

[Today at 07:40:33 AM]

[Today at 12:38:29 AM]

[Today at 12:14:32 AM]

[August 20, 2009, 08:15:02 PM]

[August 20, 2009, 07:53:42 PM]

[August 20, 2009, 07:33:16 PM]

by M.R.
[August 20, 2009, 05:55:25 PM]
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 0.074 seconds with 24 queries.