Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra: Ostfront 41-45 Forums > Red Orchestra Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 08-11-2011, 09:04 AM
Alan123's Avatar
Alan123 Alan123 is offline
Member
 
Join Date: Jan 2011
Posts: 33
Default Tank Wrecks Stay mod

Hallo,

Where can I regulate how long and if a tank wreck stays on the map and how long it burns for?

Am looking at making a tank wreck stay mod.

Thanks

Alan
__________________
My RC Tank Youtube Channel:
DH_RealPanzer
Reply With Quote
  #2  
Old 03-29-2013, 02:57 AM
chasse chasse is offline
Junior Member
 
Join Date: Mar 2013
Posts: 17
Default

Look for "MinDestroyedLifeSpan" and "MaxDestroyedLifeSpan" in the ROVehicle class. On dedicated servers, I believe they are destroyed within 2 seconds serverside. On the host, they are destroyed to whatever MaxDestroyedLifeSpan is set to. On the client, they are destroyed to what MinDestroyedLifeSpan is set to.
Reply With Quote
  #3  
Old 04-01-2013, 06:19 AM
Alan123's Avatar
Alan123 Alan123 is offline
Member
 
Join Date: Jan 2011
Posts: 33
Default

Hallo,

Thanks for your help.

I ended up solving this one myself by extending the treadcraft class and adding this line

TimeTilDissapear=500.000000

That is 500 seconds. Seems to work but if there is a better way of doing it that is easier on the server pls let me know.

Thanks

Alan
__________________
My RC Tank Youtube Channel:
DH_RealPanzer
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC