Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Where's My Beacon
[SSGM 4.0 Plugin] Where's My Beacon [message #473613] Mon, 27 August 2012 15:30 Go to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
This plugin is the 4.0 version of reborn's original plugin "Defend My Beacon" for the old SSGM, which can be found here http://www.renegadeforums.com/index.php?t=msg&th=36861&start=0&rid=2 0487


Quote:


### Created by Xpert from Atomix
### irc.ax-games.net
### www.ax-games.net


### CREDITS
Thanks to reborn for original concept


### DESCRIPTION ###
This plugin will make a player say in team chat when they have placed a beacon and will say near what building if it's legit. This concept of the plugin uses the actual client's name with TMSG rather than the old way of a color message that non-script users couldn't see.

- PLAYERNAME: The beacon I deployed is FAKE.
- PLAYERNAME: I deployed a FAKE beacon near the BUILDINGNAME.
- PLAYERNAME: Please help DEFEND my beacon near the BUILDINGNAME!

### CHANGELOG ###

V1 - Release




http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder

[Updated on: Mon, 27 August 2012 15:35]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473614 is a reply to message #473613] Mon, 27 August 2012 16:45 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
like++;

-Jelly Administrator
-Exodus Administrator
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473622 is a reply to message #473613] Mon, 27 August 2012 23:08 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Does it check the distance from a building via checking building meshes or via checking the distance of the controller? If it's the latter if you place a beacon on the strip part of the Airstrip it'll say it's fake.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473623 is a reply to message #473613] Mon, 27 August 2012 23:21 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
try using these

	void											BuildingGameObj::Find_Closest_Poly (const Vector3 &pos, float *distance2);	
	int											BuildingGameObj::Building_In_Range(const Vector3 &point, float range);	//return 0 for no, 1 for yes and 2 for MCT in range


Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473624 is a reply to message #473613] Mon, 27 August 2012 23:26 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Find_Closest_Building() will return a NULL pointer on maps without buildings, probably causing the server to crash if you deploy a beacon on it.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473625 is a reply to message #473613] Mon, 27 August 2012 23:30 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Get_Translated_Preset_Name_Ex() allocates a string on the heap, you're not delete[]'ing that so you're leaking memory.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473626 is a reply to message #473613] Mon, 27 August 2012 23:35 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
You should be fine with using the DamageRadius of the beacon explosions + 2.0f. 15+2 for the Ion Cannon's explosion, so a lot less than 30 (if you use the distance from mesh and not building controller)

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases

[Updated on: Tue, 28 August 2012 02:15]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Where's My Beacon [message #473696 is a reply to message #473613] Wed, 29 August 2012 01:01 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Building_In_Range is significantly less expensive than Find_Closest_Poly, so please don't use the latter unless you actually need to know the distance value.
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #474594 is a reply to message #473613] Sun, 16 September 2012 12:08 Go to previous messageGo to next message
Hawk is currently offline  Hawk
Messages: 7
Registered: May 2009
Karma: 0
Recruit
Was just thinking bout this, thank you Smile
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #474654 is a reply to message #473613] Mon, 17 September 2012 13:52 Go to previous messageGo to next message
liquidv2 is currently offline  liquidv2
Messages: 3407
Registered: February 2007
Karma: 0
General (3 Stars)
can you rename it Dude Where's My Beacon

liquidv2
Re: [SSGM 4.0 Plugin] Where's My Beacon [message #474677 is a reply to message #473696] Tue, 18 September 2012 05:49 Go to previous message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
saberhawk wrote on Wed, 29 August 2012 02:01

Building_In_Range is significantly less expensive than Find_Closest_Poly, so please don't use the latter unless you actually need to know the distance value.

He could always put it on a separate thread, it's not like the chat message needs to be sent instantly after all, some delay would be acceptable I'm sure.


Previous Topic: [SSGM 4.0 Plugin] Set Deaths Console Command
Next Topic: [Map] C&C_Madness.mix
Goto Forum:
  


Current Time: Thu Apr 18 00:18:19 MST 2024

Total time taken to generate the page: 0.00717 seconds