Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2014-08-14 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
August 14, 2014, 02:02:23 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://ownageclan.com/jenkins/job/War3Source-Default1/
WIKI page: http://ownageclan.com/wiki/index.php/Main_Page
War3Source GIT repo: https://github.com/War3Source/War3Source
War3Source servers: http://www.game-monitor.com/search.php?vars=a_war3_version=
War3Source Function Reference: http://ownageclan.com/war3source/functionreference/?search=player
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Use beacon with my race?  (Read 203 times)
MrRick
Newbie
*
Posts: 3


View Profile
« on: June 26, 2014, 02:17:00 AM »

Alright. I've searched everywhere trying to figure out how to do this. Maybe it's more difficult than I thought, maybe I somehow missed it, or maybe I'm just extremely tired and I'm having a really frustrating dream. If I want to use the default funcommands beacon effect with my race, how would I go about doing that?
Logged

STEAM_0:1:29667456
Remy Lebeau
Sr. Member
****
Posts: 418



View Profile WWW
« Reply #1 on: June 26, 2014, 04:03:47 AM »


Code:
ServerCommand( "sm_beacon #%d" , GetClientUserId( victim ) );

The only limitation with doing it that way is that the "beacon" command doesn't have an on/off switch, so if you hit them once it will toggle it on, hit them again it will toggle it off - you can't choose how to turn on / off.  (as opposed to say sm_drug, which you can use 0/1 to turn on or off)
Logged

Necavi
Hero Member
*****
Posts: 501


View Profile
« Reply #2 on: June 26, 2014, 07:32:34 AM »

This is not eventscripts, please don't use the server command for beacon, it causes a lot of extra problems, if you really want the exact beacon look (although it is VERY easy to create your own) go into funcommands and chop out the beacon code.
Logged

Remy Lebeau
Sr. Member
****
Posts: 418



View Profile WWW
« Reply #3 on: June 27, 2014, 12:23:22 AM »

This is not eventscripts, please don't use the server command for beacon, it causes a lot of extra problems, if you really want the exact beacon look (although it is VERY easy to create your own) go into funcommands and chop out the beacon code.

What sort of problems?  I don't see what's wrong with reusing an existing command to save yourself time and effort...
Logged

Revan
Sr. Member
****
Posts: 437



View Profile
« Reply #4 on: June 27, 2014, 08:17:36 AM »

One annoying thing is the chat message which is displayed when sm_beacon is toggled on a player.
« Last Edit: June 27, 2014, 08:21:05 AM by Revan » Logged

#war3source on gamesurge
MrRick
Newbie
*
Posts: 3


View Profile
« Reply #5 on: June 27, 2014, 02:10:08 PM »

One annoying thing is the chat message which is displayed when sm_beacon is toggled on a player.

I agree. I used that to see what it would look like, but I couldn't stand that showing everytime the ultimate is used. Instead, I went through the Roll The Dice code (since its all in one file) and managed to get the beacon working correctly. Thanks for the help!
Logged

STEAM_0:1:29667456
Remy Lebeau
Sr. Member
****
Posts: 418



View Profile WWW
« Reply #6 on: June 27, 2014, 07:34:48 PM »

One annoying thing is the chat message which is displayed when sm_beacon is toggled on a player.

Not denying that, especially since it looks like an admin toggled beacon rather than a race.  But that's not in the same league as the "problems" that necavi is suggesting it creates!
Logged

Necavi
Hero Member
*****
Posts: 501


View Profile
« Reply #7 on: June 27, 2014, 09:01:54 PM »

That's definitely a problem, and one of the most annoying things about WCS races. You also get issues where it will toggle off beacons admins turn on players and has a sound that you can't turn off and may want to.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!