Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Syncing or changing BuildingGameObj 'IsDetroyed' state for clients
Re: Syncing or changing BuildingGameObj 'IsDetroyed' state for clients [message #488205 is a reply to message #488203] Tue, 01 July 2014 10:10 Go to previous messageGo to previous message
dblaney1 is currently offline  dblaney1
Messages: 358
Registered: March 2014
Location: United States
Karma:
Commander
Ethenal wrote on Tue, 01 July 2014 09:55

Of course it's hacky, you're setting an internal netcode flag in a manner that wasn't originally intended, I have no clue how you can possibly tell me it's not "hacky." Being "hacky" does not make it incorrect, but it does make it "hacky." Or maybe see the term kludge



Except we aren't using some undocumented piece of code. We are using a function right out of the scripts to set the flag. Heck the plugin doesn't even set the flag. Scripts.DLL does. It works unmodified server side which is why it doesn't make sense to start making changes to the server side code. The only thing that needs to be set client side is the isdestroyed flag. Stuff like base power, defenses, rebuilding a harvester, etc is all server side and doesn't require any changes to be made to the netcode at all. That stuff already works.


If you want to see what function we are using its Restore_Building in engine_game.CPP.

[Updated on: Tue, 01 July 2014 10:43]

Report message to a moderator

 
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
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
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
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: Trouble downloading scripts
Next Topic: Can't see player names anymore?
Goto Forum:
  


Current Time: Tue Nov 26 23:38:42 MST 2024

Total time taken to generate the page: 0.02654 seconds