Home » Renegade Discussions » Mod Forum » Buying Back Dead Buildings
Re: Buying Back Dead Buildings [message #315297 is a reply to message #315291] |
Sun, 03 February 2008 17:32   |
 |
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma:
|
General (3 Stars) |
|
|
Yrr wrote on Sun, 03 February 2008 18:40 |
reborn wrote on Sun, 03 February 2008 23:16 |
Yrr wrote on Sun, 03 February 2008 17:00 | Get Resurrection, enable revivable buildings in configuration and attach script RR_ReviveBuilding to the building to revive it.
|
Please can you explain how that works in depth? Did you actually manage find the right calls and update the client or have you done it some other way?
Please can you explain it with detail?
|
Since a real revive for normal Renegade users is impossible, RR does it like that:
On building destruction, it sends the following information to non-RR clients instead of sending the destruction:
- set health to 1hp
- turn power off
So non-RR clients can still target the building and it is not darkened, but from inside it looks like destroyed ans there is no health bar.
RR-clients have a client-side fix to allow resurrectable buildings so they see buildings destroyed as usual.
Once RR revives a building, it sets health to 50%, enables power, reinitializes it, re-attaches preset scripts and for AGT and Obelisk, it re-initializes their turrets.
Took me some days to make all that work correctly.
It can be used easily soon, since I'm currently a plugin system for RR, and there you only have to use building.revive();
|
That's pretty cool. But how do you make the Purchase terminal appear "disabled" for the non-rr clients when a building is supposed to be dead?
Also, how do you make the clients see the prices doubled for when the power plant is supposed to be dead, but really it's just had it's health set to 1?
v00d00 also said it was impossible to make clients update the purchase terminal without rejoining the server, however, I also heard that Silent Kane manged it server-side. Perhaps it was a Chinese whisper :-/
|
|
|
 |
|
Buying Back Dead Buildings
By: _SSnipe_ on Sat, 02 February 2008 18:50
|
 |
|
Re: Buying Back Dead Buildings
By: Veyrdite on Sat, 02 February 2008 22:23
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sat, 02 February 2008 23:35
|
 |
|
Re: Buying Back Dead Buildings
By: hatstand on Sun, 03 February 2008 02:42
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 03:45
|
 |
|
Re: Buying Back Dead Buildings
By: Ethenal on Sun, 03 February 2008 03:46
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 04:11
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sun, 03 February 2008 11:58
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 15:00
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 15:16
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 16:40
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 17:32
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Sun, 03 February 2008 18:04
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 03:24
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Mon, 04 February 2008 08:24
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Sun, 03 February 2008 16:29
|
 |
|
Re: Buying Back Dead Buildings
By: _SSnipe_ on Sun, 03 February 2008 20:17
|
 |
|
Re: Buying Back Dead Buildings
By: cnc95fan on Mon, 04 February 2008 10:49
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 10:57
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: reborn on Mon, 04 February 2008 14:20
|
 |
|
Re: Buying Back Dead Buildings
By: Sir Kane on Tue, 05 February 2008 03:30
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Tue, 05 February 2008 13:31
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: jnz on Tue, 05 February 2008 14:21
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
By: Yrr on Wed, 06 February 2008 10:19
|
 |
|
Re: Buying Back Dead Buildings
|
 |
|
Re: Buying Back Dead Buildings
|
Goto Forum:
Current Time: Tue Feb 18 21:16:29 MST 2025
Total time taken to generate the page: 0.00962 seconds
|