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, 12:17:12 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
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: is dalias usable in the shopmenu?  (Read 92 times)
mobsi
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 82



« on: April 21, 2008, 03:49:55 PM »

well the topic is my question cause in the time of lots of fullinvis ultimate races a player on the server tought it would be nice to have a kind of detector ^^

well i found the dmg aura and thought yeah sure why not ^^ i deleted the dmg and the msgs and set the sfx to just yourself and yeah hers the result

Code
GeSHi (eventscripts):
""
 {
 "name"        "helm of true sight"
 "description" "you can see the invis guys"
 "category"    "3"
 "cost"        "2000"
 "level"       "15"
 "dab"         "1"
 "duration"    "0"
 "maxamount"   "0"
 "itemconfig"  "player_spawn"
 "cmdbuy"      "0"
 "cmdactivate" ""es_xsetinfo wcs_name2 0;es_xsetinfo wcs_round 0;es_keysetvalue WCSUserdata event_var(userid) aura_round server_var(wcs_roundcounter);es_setinfo wcs_tmp2 event_var(userid);shopalias_ax1p31""
 "shopalias_ax1p32"    "es_getplayerprop wcs_dead server_var(wcs_tmp2) CCSPlayer.baseclass.pl.deadflag;if (server_var(wcs_dead) = 0) then shopalias_ax1p33"
 "shopalias_ax1p33"    "es_getplayerteam wcs_team server_var(wcs_tmp2);if (server_var(wcs_team) = 2) then es_xsetinfo wcs_team #c!d;if (server_var(wcs_team) = 3) then es_xsetinfo wcs_team #t!d;es est_Near wcs_targetid server_var(wcs_team) server_var(wcs_tmp3) server_var(wcs_tmp2) shopalias_ax1p34;shopalias_ax1p31"
 "shopalias_ax1p34"    "es_playsound server_var(wcs_targetid) npc/combine_gunship/ping_search.wav 0.6;es_getplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_targetid);es_xmath wcs_z1 + 50;es est_effect 11 event_var(userid) 0 effects/ar2_altfire1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.7 0.5 255;es est_effect 11 event_var(userid) 0 sprites/physring1.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) 0.7 0.8 255"
 "shopalias_ax1p31"    "es_keygetvalue wcs_round WCSuserdata server_var(wcs_tmp2) aura_round;if (server_var(wcs_roundcounter) = server_var(wcs_round)) then es_xdelayed 1.7 wcs_dalias shopalias_ax1p32 server_var(wcs_tmp2) server_var(wcs_tmp3) server_var(wcs_tmp4)"
 }
 
« Last Edit: April 21, 2008, 03:52:13 PM by mobsi » Logged
HOLLIDAY
<Race Maker>
Watchdogs
Level 7 Expert
*****
Offline Offline

Posts: 1567



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 72.249.51.26:27015
(Warning: click connects through Steam)
« Reply #1 on: April 22, 2008, 04:50:24 PM »

i made an item like this for my shopmenu2
i use event player_footstep
so it makes all invisible enemy players within a radius visible as you walk

Code:
event player_footstep
{
  es_xsetinfo lensoftruth 0
  es es_xkeygetvalue lensoftruth WCSuserdata event_var(userid) lensoftruth
  es es_xif (server_var(lensoftruth) = 1) do
{
es_xsetinfo target 0
es_xsetinfo team 0
es_getplayerteam team event_var(userid)
es est_getviewcoord event_var(userid) wcs_x1 wcs_y1 wcs_z1
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es est_setplayercolor server_var(target) 255 255 255 255"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es est_setplayercolor server_var(target) 255 255 255 255"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es_delayed .1 ma_render_fx server_var(target) 11"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es_delayed .1 ma_render_fx server_var(target) 11"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es es_xtell server_var(target) #multi #lightgreenYour #greenInvisibility #lighgreenhas been #greendestroyed !"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es es_xtell server_var(target) #multi #lightgreenYour #greenInvisibility #lighgreenhas been #greendestroyed !"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #t 900 event_var(userid) "es es_xtell event_var(userid) #multi #lightgreenYou have destroyed an enemies #greenInvisibility"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #c 900 event_var(userid) "es es_xtell event_var(userid) #multi #lightgreenYou have destroyed an enemies #greenInvisibility"
}
}

for the item  is
Code:
es es_xkeygetvalue wcs_lensoftruth WCSuserdata event_var(userid) lensoftruth
es es_xkeysetvalue WCSuserdata event_var(userid) lensoftruth 1
just make sure to put somwhere in
Code:
event player_death
{
es es_xkeysetvalue WCSuserdata event_var(userid) lensoftruth 0
}
Logged

mobsi
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 82



« Reply #2 on: April 24, 2008, 01:32:52 PM »

and i have to put that into the shopmenu file?
Logged
Laborant
Level 0 Beginner

Offline Offline

Germany Germany

Posts: 1



« Reply #3 on: April 26, 2008, 12:28:11 PM »

jeah its good idea.. ..i hate invis. guys....where do i have to pack that purely                              

event player_footstep
{
  es_xsetinfo lensoftruth 0
  es es_xkeygetvalue lensoftruth WCSuserdata event_var(userid) lensoftruth
  es es_xif (server_var(lensoftruth) = 1) do
{
es_xsetinfo target 0
es_xsetinfo team 0
es_getplayerteam team event_var(userid)
es est_getviewcoord event_var(userid) wcs_x1 wcs_y1 wcs_z1
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es est_setplayercolor server_var(target) 255 255 255 255"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es est_setplayercolor server_var(target) 255 255 255 255"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es_delayed .1 ma_render_fx server_var(target) 11"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es_delayed .1 ma_render_fx server_var(target) 11"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #c 900 event_var(userid) "es es_xtell server_var(target) #multi #lightgreenYour #greenInvisibility #lighgreenhas been #greendestroyed !"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #t 900 event_var(userid) "es es_xtell server_var(target) #multi #lightgreenYour #greenInvisibility #lighgreenhas been #greendestroyed !"
es es_xif (event_var(es_userteam) = 2) then  es est_Near target #t 900 event_var(userid) "es es_xtell event_var(userid) #multi #lightgreenYou have destroyed an enemies #greenInvisibility"
es es_xif (event_var(es_userteam) = 3) then  es est_Near target #c 900 event_var(userid) "es es_xtell event_var(userid) #multi #lightgreenYou have destroyed an enemies #greenInvisibility"
}
}

and this

es es_xkeygetvalue wcs_lensoftruth WCSuserdata event_var(userid) lensoftruth
es es_xkeysetvalue WCSuserdata event_var(userid) lensoftruth 1

event player_death
{
es es_xkeysetvalue WCSuserdata event_var(userid) lensoftruth 0
}



sorry for my english, its not very good   
thx for all
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 11:42:35 AM]

[Today at 11:35:19 AM]

[Today at 11:33:58 AM]

[Today at 11:28:48 AM]

[Today at 09:06:31 AM]

[Today at 08:16:43 AM]

[Today at 05:56:24 AM]

[Today at 04:35:17 AM]

[Today at 02:00:39 AM]

[April 30, 2008, 10:55:25 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.094 seconds with 28 queries.