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-12-07 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
December 07, 2008, 11:31:33 AM *
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.
Also here is the WCS Wiki!
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: Ultimate works on server start, but not after map change  (Read 14 times)
octoberD
Level 0 Beginner

Offline Offline

Posts: 3



« on: December 05, 2008, 04:51:59 AM »

I modified the Roots ultimate so that it executes on the enemy you're looking at and his nearby teammates. It works on the first map after a server start, but does not work after the map changes. If anyone can point me in the right direction I'd appreciate it.

Code
GeSHi (eventscripts):
block wcs_ulti_roots
{
es es_xif (server_var(wcs_debug) = "1") then echo wcs_ulti_roots start
 es_setinfo wcs_root_victim 0
 es_xsetinfo wcs_team_target 0
 es es_xgetplayerteam wcs_team server_var(wcs_userid)
 // check teams (T=2, CT=3)
 es es_xif (server_var(wcs_team) = 2) do
 {
   es_xsetinfo wcs_team_target 3
   es_xsetinfo wcs_team_targetn "#c!d"
 }
 es es_xif (server_var(wcs_team) = 3) do
 {
   es_xsetinfo wcs_team_target 2
   es_xsetinfo wcs_team_targetn "#t!d"
 }
 es es_xif (server_var(wcs_team_target) != "0") do
 {
   es_xsetinfo wcs_pcount 0
   es es_xgetlivingplayercount wcs_pcount server_var(wcs_team_target)
   es es_xif (server_var(wcs_pcount) > 0) do
   {
    es est_Fade server_var(wcs_root_victim) 0 1 1 10 55 5 200
    es_xsetinfo wcs_wall "1"
     alias wcs_run_ulti_roots1 "es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_root_victim);es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es_xmath wcs_z1 - 100;es_xmath wcs_z2 + 50;es est_getwallbetween wcs_wall server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2);es es_xif (server_var(wcs_wall) = 1) then wcs_run_ulti_roots2"
     alias wcs_run_ulti_roots2 "es_xsetinfo wcs_immunity 0;es es_xkeygetvalue wcs_immunity WCSuserdata server_var(wcs_targetid) ulti_immunity;es es_xif (server_var(wcs_immunity) = 0) then wcs_run_ulti_roots3;es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng_ulti_immunity_a);es es_xif (server_var(wcs_immunity) != 0) then es_xtell server_var(wcs_targetid) #multi server_var(wcs_lng_ulti_immunity_v)"
     alias wcs_run_ulti_roots3 "es_xmath wcs_counter + 1;es est_Freeze server_var(wcs_targetid) 1;es es_xdelayed server_var(wcs_freezetime) wcs_removefx freeze server_var(wcs_targetid);es es_xif (server_var(wcs_graphicfx) = 1) then est_effect 3 #a 0 sprites/lgtning.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 10 10 0 255 0 255"
     es_xsetinfo wcs_counter 0
     es est_GetViewPlayer server_var(wcs_userid) wcs_root_victim
es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_root_victim) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_run_ulti_roots1"
     es es_xif (server_var(wcs_counter) > 0) do
     {
      wcs_getlanguage "wcs_lng" "wcs_lng_entangleroots"
       esnq est_csay server_var(wcs_userid) server_var(wcs_lng) : server_var(wcs_counter)
     }
     es_xelse do
     {
       es_xsetinfo wcs_ultinotexec 1
     }
   }
   es_xelse do
   {
     es_xsetinfo wcs_ultinotexec 1
   }
 }
 wcs_getlanguage "wcs_lng" "wcs_lng_entanglefailed"
 es es_xif (server_var(wcs_ultinotexec) = 1) then es_xtell server_var(wcs_userid) #multi server_var(wcs_lng)
es es_xif (server_var(wcs_debug) = "1") then echo wcs_ulti_roots end
}
« Last Edit: December 05, 2008, 05:02:07 AM by octoberD » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
Today at 10:56:34 AM
robtronic, i guess your map has to be accepted by admin, before it's added to dl section
gippo, your abilities go in WCSfunctions/WCSskills/es_WCSskills.txt
Today at 06:29:01 AM
hey guys where do i put the abilities script at
Today at 04:49:30 AM
I added a map 2 days ago, why is it not available to download?
Today at 03:45:49 AM
My opinion is that we've got too many smilies -.-
December 06, 2008, 10:31:14 PM
hey all check out the new smilies :D
December 04, 2008, 09:57:56 PM
gg
Recent
[Today at 11:31:04 AM]

[Today at 11:26:48 AM]

[Today at 11:25:51 AM]

[Today at 11:22:11 AM]

[Today at 11:16:56 AM]

[Today at 11:00:54 AM]

[Today at 04:53:19 AM]

[December 06, 2008, 07:16:44 PM]

[December 06, 2008, 06:29:03 PM]

[December 06, 2008, 02:46: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.141 seconds with 27 queries.