Restore damage points after restart
-
Hi there,
on our server,we have destructiable stations.
With lots of life points, so they can be destroyed in 1 day, but, if a attcak a base and cause some damage (50%) and i restart the server, the base have all his life restoredIs there a way to have stations automaticly redamaged after a server restart ?
-
The server ‘builds’ all the stations again when it’s restarted, so there’s no way to do it with .ini files as far as I know. Maybe an FLHook plugin?
-
ok, i have think about that, so i may build an flhhok plugin so…
I Will tell here later if the plugin we are making is OK or not
-
it would have to save the remaining hitpoints in a temp log file or so and read them out again on startup. if a station should have 0, then it should read out the maximum hitpoints from the inis (logical function).
-
Yes, we have to store the damage states (like base1=10000000/60000000) then we have to juste calculate the % of live left, and reinject hitpoit to the console. If a station have 0 lifepoints, then station destroyed.
2/5