Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Buying Back Dead Buildings
Re: Buying Back Dead Buildings [message #315291 is a reply to message #315279] Sun, 03 February 2008 16:40 Go to previous messageGo to previous message
Yrr is currently offline  Yrr
Messages: 556
Registered: October 2006
Location: Germany
Karma:
Colonel

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();


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: need file name
Next Topic: Predator Stealth?
Goto Forum:
  


Current Time: Tue Feb 18 21:45:19 MST 2025

Total time taken to generate the page: 0.00962 seconds