|
|
|
Re: Buy back building mod [message #340027 is a reply to message #339993] |
Wed, 09 July 2008 18:59 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
as said pm the forums of xpz
Quote: |
As I find some of my old stuff I will post it. I will let Xphaze keep the newest stuff unless they wish to release it.
I will be editing this post as I upload so check back every now and then.
Link: http://rapidshare.com/files/113797600/Revivable_Buildings.zip
CODE
Revivable Buildings:
Requirements: SSGM and Renegade Resurrection
Install: Put Revive.dll in your FDS folder and add Revive to you plugins list in SSGM.ini
Usage: !revive <Building>
Where <Building> is a short version ie Bar for Barracks.
Known Bugs: This version seems to have a problem with the Veteran plugin release by Hex. I have not fixed this and remains a bug.
|
[Updated on: Wed, 09 July 2008 18:59] Report message to a moderator
|
|
|
|
|
Re: Buy back building mod [message #340111 is a reply to message #339993] |
Thu, 10 July 2008 09:07 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
I didn't think you could properly buyback buildings without a client side modification.
You can attach all the scripts and call the bhs.dll option to reset the status but the building remains destroyed clientside?
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
Re: Buy back building mod [message #340117 is a reply to message #340111] |
Thu, 10 July 2008 09:39 |
|
IronWarrior
Messages: 2460 Registered: November 2004 Location: England UK
Karma: 0
|
General (2 Stars) |
|
|
dead6re wrote on Thu, 10 July 2008 11:07 | I didn't think you could properly buyback buildings without a client side modification.
You can attach all the scripts and call the bhs.dll option to reset the status but the building remains destroyed clientside?
|
Zunnie first made the mod a long time ago, we used to run it on our servers, it fully worked, all server side. The only problem was that players had to leave and rejoin to use the buy menu, this is why we added switchs that you could use to buy vehicles and chars.
Reborn fixed this bug few months ago.
Kinda weird you didn't know this, where you been living? xD
[Updated on: Thu, 10 July 2008 09:40] Report message to a moderator
|
|
|
Re: Buy back building mod [message #340160 is a reply to message #340027] |
Thu, 10 July 2008 14:26 |
MacKinsey
Messages: 83 Registered: March 2008
Karma: 0
|
Recruit |
|
|
SSnipe wrote on Wed, 09 July 2008 20:59 | as said pm the forums of xpz
Quote: |
As I find some of my old stuff I will post it. I will let Xphaze keep the newest stuff unless they wish to release it.
I will be editing this post as I upload so check back every now and then.
Link: http://rapidshare.com/files/113797600/Revivable_Buildings.zip
CODE
Revivable Buildings:
Requirements: SSGM and Renegade Resurrection
Install: Put Revive.dll in your FDS folder and add Revive to you plugins list in SSGM.ini
Usage: !revive <Building>
Where <Building> is a short version ie Bar for Barracks.
Known Bugs: This version seems to have a problem with the Veteran plugin release by Hex. I have not fixed this and remains a bug.
|
|
Ehhm this archive code in the archive is only for the hon and for the bar.
And u must only type !revinf
If u dont belive me, here is the code
Toggle Spoiler
class revinfChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
GameObject *obj = Get_GameObj(ID);
Console_Input(StrFormat("msg 1",Get_Player_ID(obj)).c_str());
float Credits = Commands->Get_Money(obj);
int Team = Get_Object_Type(obj);
int BuildingID = Commands->Get_ID(Find_Soldier_Factory(Team));
GameObject *thebuilding = Commands->Find_Object(BuildingID);
if(Is_Building_Dead(Find_Building(Team,SOLDIER_FACTORY))) {
if (Team == 1) {
if(Credits >= 20000){
Commands->Give_Money(obj,-20000,false);
Console_Input(StrFormat("msg %d Has just revived the Barracks",Get_Player_ID(obj)).c_str());
Commands->Attach_Script(thebuilding, "RR_ReviveBuilding", "");
}
else{
Console_Input(StrFormat("ppage %d You do not have enough credits to revive the Barracks.",Get_Player_ID(obj)).c_str());
}
}
else {
if(Credits >= 20000){
Commands->Give_Money(obj,-20000,false);
Console_Input(StrFormat("msg %d Has just revived the Hand of Nod",Get_Player_ID(obj)).c_str());
Commands->Attach_Script(thebuilding, "RR_ReviveBuilding", "");
}
else{
Console_Input(StrFormat("ppage %d You do not have enough credits to revive the Hand of Nod.",Get_Player_ID(obj)).c_str());
}
}
}
if (Team == 1) {
Console_Input(StrFormat("ppage %d The Barracks is not dead.",Get_Player_ID(obj)).c_str());
}
else {
Console_Input(StrFormat("ppage %d The Hand of Nod is not dead.",Get_Player_ID(obj)).c_str());
}
}
};
ChatCommandRegistrant<revinfChatCommand> revinfChatCommandReg("!revinf",CHATTYPE_TEAM,0,GAMEMODE_AOW);
If sum1 want to do that with tokens, i would be happy, if no one does or it is undoable ill create for every sort of building a command
|
|
|
Re: Buy back building mod [message #340166 is a reply to message #339993] |
Thu, 10 July 2008 15:10 |
MacKinsey
Messages: 83 Registered: March 2008
Karma: 0
|
Recruit |
|
|
Oke i modded the plugin.
Readme is in the Spoiler and in the Archive.
Source is included too.
Show Readme
Revivable Buildings Plugin:
Requirements: SSGM and Renegade Resurrection
Install: Put revive.dll in your FDS folder and add revive.dll to you plugins list in SSGM.ini
Usage: !revive_<Building> or !r_<Building>
The Building names are:
-bar
-hon
-pp
-ref
-air
-wf
Original (only Soldier Factories reviveable) is done by XpHaZeGaming
Modified by MacKinsey
If you see any bugs, let me know this, sent a PM at www.renegadeforums.com to "MacKinsey"
DOWNLOAD
http://tinyurl.com/65t2pf
EDIT: SRY FOR MULTIPOST
[Updated on: Thu, 10 July 2008 15:11] Report message to a moderator
|
|
|
Re: Buy back building mod [message #340171 is a reply to message #340166] |
Thu, 10 July 2008 16:05 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
MacKinsey wrote on Thu, 10 July 2008 15:10 | Oke i modded the plugin.
Readme is in the Spoiler and in the Archive.
Source is included too.
Show Readme
Revivable Buildings Plugin:
Requirements: SSGM and Renegade Resurrection
Install: Put revive.dll in your FDS folder and add revive.dll to you plugins list in SSGM.ini
Usage: !revive_<Building> or !r_<Building>
The Building names are:
-bar
-hon
-pp
-ref
-air
-wf
Original (only Soldier Factories reviveable) is done by XpHaZeGaming
Modified by MacKinsey
If you see any bugs, let me know this, sent a PM at www.renegadeforums.com to "MacKinsey"
DOWNLOAD
http://tinyurl.com/65t2pf
EDIT: SRY FOR MULTIPOST
|
wow didint know that....all i know is when he put it in xpz server all buildings worked...then just said he released it to the fourms i guess he put wrong one or something
|
|
|
|
Re: Buy back building mod [message #340274 is a reply to message #340176] |
Fri, 11 July 2008 04:32 |
MacKinsey
Messages: 83 Registered: March 2008
Karma: 0
|
Recruit |
|
|
EA-DamageEverything wrote on Thu, 10 July 2008 18:32 | MacK, there is an Auth-HTTPrequest right infront of the download. I don't know your admin/root password...
|
Oh sorry. I didnt noticed when i tested the link because i was logged in. its fixed now
EDIT: U dont need 2 download.
IT WONT WORK, BUT I DONT KNOW WHY
[Updated on: Fri, 11 July 2008 06:24] Report message to a moderator
|
|
|
|
|
Re: Buy back building mod [message #340313 is a reply to message #340117] |
Fri, 11 July 2008 10:16 |
dead6re
Messages: 602 Registered: September 2003
Karma: 0
|
Colonel |
|
|
IronWarrior wrote on Thu, 10 July 2008 12:39 |
dead6re wrote on Thu, 10 July 2008 11:07 | I didn't think you could properly buyback buildings without a client side modification.
You can attach all the scripts and call the bhs.dll option to reset the status but the building remains destroyed clientside?
|
Zunnie first made the mod a long time ago, we used to run it on our servers, it fully worked, all server side. The only problem was that players had to leave and rejoin to use the buy menu, this is why we added switchs that you could use to buy vehicles and chars.
Reborn fixed this bug few months ago.
Kinda weird you didn't know this, where you been living? xD
|
Yes but does it work for clients without bhs.dll properly?
Let all your wishes be granted except one, so you will still have something to strieve for.
|
|
|
Re: Buy back building mod [message #340342 is a reply to message #340313] |
Fri, 11 July 2008 12:00 |
|
IronWarrior
Messages: 2460 Registered: November 2004 Location: England UK
Karma: 0
|
General (2 Stars) |
|
|
dead6re wrote on Fri, 11 July 2008 12:16 |
IronWarrior wrote on Thu, 10 July 2008 12:39 |
dead6re wrote on Thu, 10 July 2008 11:07 | I didn't think you could properly buyback buildings without a client side modification.
You can attach all the scripts and call the bhs.dll option to reset the status but the building remains destroyed clientside?
|
Zunnie first made the mod a long time ago, we used to run it on our servers, it fully worked, all server side. The only problem was that players had to leave and rejoin to use the buy menu, this is why we added switchs that you could use to buy vehicles and chars.
Reborn fixed this bug few months ago.
Kinda weird you didn't know this, where you been living? xD
|
Yes but does it work for clients without bhs.dll properly?
|
Oh I think I understand what you was first saying, nope they don't, they can still be in the server and play but in our mod we added computer tables and you needed scripts 2.9.2 or above to use them.
|
|
|