|
|
|
|
|
|
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #461417 is a reply to message #461375] |
Sun, 08 January 2012 13:46 |
iRANian
Messages: 4308 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 #461436 is a reply to message #461417] |
Sun, 08 January 2012 16:40 |
|
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.
[Updated on: Sun, 08 January 2012 16:41] Report message to a moderator
|
|
|
|
|
|
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469144 is a reply to message #461332] |
Tue, 12 June 2012 13:34 |
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 |
|
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
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
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[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 |
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. I can now kill all sorts of shit and revive them.
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 |
|
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. I can now kill all sorts of shit and revive them.
|
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
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: [SSGM 4.0 Plugin] Building Revival Console Commands [message #469352 is a reply to message #461332] |
Fri, 15 June 2012 14:23 |
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 |
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
|
|
|
|
|