Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [SSGM 4.0 Plugin] Building Revival Console Commands
[SSGM 4.0 Plugin] Building Revival Console Commands [message #461332] Thu, 05 January 2012 11:02 Go to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
See http://www.renegadeforums.com/index.php?t=msg&th=40368&start=0& for version 2 of this plugin.

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: Sun, 04 May 2014 13:05]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461346 is a reply to message #461332] Thu, 05 January 2012 15:37 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
I used to do this with a custom written script but this is better Thumbs Up

http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Thu, 05 January 2012 15:38]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461347 is a reply to message #461332] Thu, 05 January 2012 17:23 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
You could set the plugin to do "zero" damage to the buildings after the command is put in to fix the bug.
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461349 is a reply to message #461347] Thu, 05 January 2012 19:59 Go to previous messageGo to next message
Sean is currently offline  Sean
Messages: 822
Registered: February 2009
Karma: 0
Colonel
Wow, that's pretty cool.

Nice job.


Head admin at TmX (The Matrix Sniper server)

irc.thematrixserver.com
The Matrix Sniper: 188.138.84.134:4576
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461368 is a reply to message #461347] Fri, 06 January 2012 23:19 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
Generalcamo wrote on Thu, 05 January 2012 19:23

You could set the plugin to do "zero" damage to the buildings after the command is put in to fix the bug.

I second that. Give it a try.

Also try a net update of some sort if that doesnt work.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Fri, 06 January 2012 23:19]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461375 is a reply to message #461332] Sat, 07 January 2012 19:25 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
How come you didn't simplify the command to just "REVIVE [BUILDING]"?

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
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461417 is a reply to message #461375] Sun, 08 January 2012 13:46 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
@Generalcamo: Thanks I've added that to my plugin.

@halo2pac: Yeah, the Revive_Building() command indeed seems to do that unsuccessfully.

@Xpert: There's some small benefits to do it my way, e.g. all the console commands are shown in the FDS box.

I've uploaded a new version with the "apply zero damage after revival" change.


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] Building Revival Console Commands [message #461423 is a reply to message #461332] Sun, 08 January 2012 14:08 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
By the way, did you test this with maps that contain more than 1 of a certain building like Cairo?

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
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461426 is a reply to message #461332] Sun, 08 January 2012 14:19 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Nope, I don't have any intention to support them either, because only Cairo + Fjords are the well known maps that have them and supporting them might be a royal pain to do.

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] Building Revival Console Commands [message #461436 is a reply to message #461417] Sun, 08 January 2012 16:40 Go to previous messageGo to next message
Omar007 is currently offline  Omar007
Messages: 1711
Registered: December 2007
Location: Amsterdam
Karma: 0
General (1 Star)
iRANian wrote on Sun, 08 January 2012 21:46

@Xpert: There's some small benefits to do it my way, e.g. all the console commands are shown in the FDS box.

Didn't he ment to keep it as a console command but one that uses parameters?
If he did not, your point is valid, else it would not.

EDIT (braindump): Also, still in case you would make it a parameterized console command, the parameter could be extended to also allow it to be a building controller preset, allowing custom maps with multiple buildings of the same type to be revived aswell.


http://tiberiumredux.omarpakker.nl/Old Unused Parts/Plaatjes/PromoteBanner_Hades_small.jpg

[Updated on: Sun, 08 January 2012 16:41]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461437 is a reply to message #461332] Sun, 08 January 2012 16:46 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
Could you give me more info on that? How do multiple structures of the same type work on a custom map?

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] Building Revival Console Commands [message #461444 is a reply to message #461332] Sun, 08 January 2012 19:14 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
I beleive they clone the preset, but modify the mesh prefix.

To allow people to revive cloned buildings, I recommend this:

REVIVECUSTOM (preset)

That way, someone could look at the presets, and revive those custom buildings, like silos.
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461445 is a reply to message #461332] Sun, 08 January 2012 19:16 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4299
Registered: April 2011
Karma: 0
General (4 Stars)
That's pretty obscure syntax, the only real use for including that is for bots.

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] Building Revival Console Commands [message #469144 is a reply to message #461332] Tue, 12 June 2012 13:34 Go to previous messageGo to next message
shaitan is currently offline  shaitan
Messages: 727
Registered: April 2005
Location: Pennsylvania
Karma: 0
Colonel
Disturbd21 if you get the time would you update this one for beta 5 as well?

Aircraftkiller wrote on Sun, 18 Jan 2004 07:38

I get along with people fine, so long as they aren't rejects who promised things that they couldn't
deliver on, or forum trolls who contribute nothing except to bloat the fragile egos of the same
rejects I despise.

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469156 is a reply to message #469144] Tue, 12 June 2012 15:45 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

shaitan wrote on Tue, 12 June 2012 15:34

Disturbd21 if you get the time would you update this one for beta 5 as well?

umm idk maybe Sarcasm

all I see that is wrong is Find_Build should be Find_Building_By_Type, thanks zunnie ;p





Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide

[Updated on: Tue, 12 June 2012 15:59]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469175 is a reply to message #461332] Tue, 12 June 2012 18:40 Go to previous messageGo to next message
shaitan is currently offline  shaitan
Messages: 727
Registered: April 2005
Location: Pennsylvania
Karma: 0
Colonel
It would error after beta 5, same style as the others. So I was guessing the names were changed like the other affected plugins. Thanks dist, will try it out.

<Edit> Thank you for the quick update Dist, it works like a charm. Big Ups I can now kill all sorts of shit and revive them. Razz


Aircraftkiller wrote on Sun, 18 Jan 2004 07:38

I get along with people fine, so long as they aren't rejects who promised things that they couldn't
deliver on, or forum trolls who contribute nothing except to bloat the fragile egos of the same
rejects I despise.

[Updated on: Tue, 12 June 2012 21:50]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469194 is a reply to message #469175] Tue, 12 June 2012 21:56 Go to previous messageGo to next message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma: 0
Colonel

shaitan wrote on Tue, 12 June 2012 20:40

It would error after beta 5, same style as the others. So I was guessing the names were changed like the other affected plugins. Thanks dist, will try it out.

<Edit> Thank you for the quick update Dist, it works like a charm. Big Ups I can now kill all sorts of shit and revive them. Razz


NP mate, I'm gonna go deeper into the plugin and see what I can't do about custom Buildings, will let you know when I do.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469197 is a reply to message #469194] Wed, 13 June 2012 00:41 Go to previous messageGo to next message
Reaver11 is currently offline  Reaver11
Messages: 884
Registered: April 2007
Karma: 0
Colonel
DistrbdSt0rm21 wrote on Tue, 12 June 2012 21:56


NP mate, I'm gonna go deeper into the plugin and see what I can't do about custom Buildings, will let you know when I do.


LOL I bet you mean can!
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469352 is a reply to message #461332] Fri, 15 June 2012 14:23 Go to previous messageGo to next message
triattack is currently offline  triattack
Messages: 14
Registered: May 2011
Karma: 0
Recruit
if you want to revive custom buildings by preset you could use this

class CommandREVIVEBUILDING :
	public ConsoleFunctionClass
{
public:
	const char* Get_Name() 
	{ 
		return "revivebuilding"; 
	}
	const char* Get_Help() 
	{ 
		return "REVIVEBAR - Revives a building for a team usage: revivebuilding <team> <building>."; 
	}
	void Activate(const char* argumentsString)
	{
		CommandLineParser arguments(argumentsString);
		int team = arguments.getInt();
		const char * building = arguments.getString();
		if(Find_Building_By_Preset(team,building))
		{
			Revive_Building(Find_Building_By_Preset(team,building);
		}

	}
};


haven't tested the console part as the rest wouldn't work but i know the rest works as i used that in my building revival plugin for apb that works for gamma till version 2.1.1
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #472756 is a reply to message #461332] Fri, 03 August 2012 19:29 Go to previous messageGo to next message
shaitan is currently offline  shaitan
Messages: 727
Registered: April 2005
Location: Pennsylvania
Karma: 0
Colonel
I didn't notice it before, but the Obelisk so far doesn't revive. The AGT does.
Sometimes when you kill the AGT it's still able to shoot at you. lol


Aircraftkiller wrote on Sun, 18 Jan 2004 07:38

I get along with people fine, so long as they aren't rejects who promised things that they couldn't
deliver on, or forum trolls who contribute nothing except to bloat the fragile egos of the same
rejects I despise.

[Updated on: Fri, 03 August 2012 19:55]

Report message to a moderator

Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #472761 is a reply to message #461332] Fri, 03 August 2012 22:26 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
I don't use this plugin but I never had this problem on mine and it's the same concept as Iran's. The only issue I came across is the infantry and vehicle purchases don't work after reviving the buildings.

The players ingame during the time of the revive need to leave the game and rejoin for the purchase terminals to register. A fix would be a network update to the clients after the building is revived.


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
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #472798 is a reply to message #461332] Sat, 04 August 2012 22:55 Go to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma: 1
General (3 Stars)
Finding the building by the mesh prefix would be referable. Find_Building probably already does this.
Would be able to restore buildings on maps with duplicate buildings easily.


http://s18.postimage.org/jc6qbn4k9/bricks3.png

[Updated on: Sat, 04 August 2012 23:07]

Report message to a moderator

Previous Topic: [Model Replacement] Nod Power Plant Interior
Next Topic: [SSGM 4.0 Plugin] TeamDonate Plugin
Goto Forum:
  


Current Time: Tue Apr 16 04:34:24 MST 2024

Total time taken to generate the page: 0.01191 seconds