Destructible bases in MP
-
Archetype must have cmp with dockable hardpoint.
Fuse must have death fuse and destroy root.
Respawn only after server restart (with Flak FLHook - dunno)Better to use unique archetype, for example gas_miner_old
In solararch.ini it looks like
nickname = gas_miner_old ... blahblahblah ... docking_sphere = jump, HpDockMountC, 205.500000 ; for all types of ships docking_sphere = jump, HpDockMountD, 205.500000 ; -//- docking_sphere = jump, HpDockMountE, 205.500000 ; -//- docking_sphere = jump, HpDockMountF, 205.500000 ; -//- docking_sphere = jump, HpDockMountG, 205.000000 ; -//- hit_pts = 3500000 ; it must be good for caps :) fuse = fuse_docking_ring, 0.000000, 1 ; death fuse with destroy root explosion_arch = explosion_docking_ring ; simple explosion
I have updated the code to the better version
-
Donāt these bases stay destroyed, and get reconstructed when FLServer is restarted?
-
Vital wrote:
And what about those players who logs in after base destruction?Will the base be indestructible for them?
How did you manage to solve this problem?
Yep, indestructible red base not working for dock and undock and did not shoot - immediately obvious that it was dead.
For full mod need to programm client-server hook.
Donāt these bases stay destroyed, and get reconstructed when FLServer is restarted?
That is what Iām trying to Vital to say
-
Last server-side research:
- ādocking_fixtureā is better
- Flakās FLHook regenerates destroyed base earlier than server restart
-
seems wee have that problem to
you kill the base and then no one can dock
i have the settings in hook to regen them
but seems that something not working right
i talked with motah about it but he dosent know why ethier
seems when you shoot the base it blows up insted of just blowing out smoke and and doing the sound efects
so enyone ealse found a fix ??? -
Partial variant, without destroy_root:
Works at server side tooSystem:
[Object] nickname = ST04_02 pos = -6560, 0, -2900 ids_name = 501054 ids_info = 501055 dock_with = ST04_02_Base base = ST04_02_Base rotate = 0, 90, 0 reputation = gd_z_grp archetype = space_freeport01 behavior = NOTHING voice = atc_leg_m01 space_costume = br_brighton_head, pl_male1_peasant_body difficulty_level = 19 loadout = space_freeport01_co_03 pilot = pilot_solar_hardest
SolarArch:
[Solar] nickname = space_freeport01 ... blahblahblah ... type = STATION ... blahblahblah ... destructible = true hit_pts = 3500000 fuse = fuse_gas_collector_burning, 0.000000, 17325 ; fuses without destroy_root fuse = miningbase_small_ice_burning_fuse, 0, 1 ; -//- fuse = station_burning_fuse, 0.000000, 17325 ; -//- fuse = fuse_suprise_drop_loot, 0.000000, 3590 ; -//- fuse = fuse_gas_miner_burning, 0.000000, 17325 ; -//- fuse = fuse_space_arch_burning, 0.000000, 1 ; -//- fuse = freeport7_main_fuse1, 0.000000, 1 ; -//-
-
oops found a bug once the base has been destroyed
and on the rapair mode it dosent reset when its hit again
so im geting multiple console messages
saying the base has been destroyed
need to put a reset in there
have to wait on motah see whats the best way -
Repair mode = repair gun? Respawn timeout?
-
its needing to default back to that
AlternateRepairTime=360
if it repairing and it get hit again
othere wise it continuse to repair
and you get multiple killswchar_t wszBuf2[1024]; wstring Basename = HkGetWStringFromIDS(Universe::get_base(iID)->iBaseIDS); wstring Playername = Players.GetActiveCharacterName(iClientIDBy); swprintf(wszBuf2, L"basedestroyed=%s by=%s",(Basename).c_str() ,(Playername).c_str()); HkMsgU(wszBuf2);
add that to the end of void BaseDestroyed
im using 1.6.7
when it starts to repair shoot in you see what i mean -
Which is your serv - i wanna play :)))
-
-
Update for total destruction:
All bases can be destroyed - works fine at server-side (i have tested NY)
Each player on non-existent station respawns from the sun x)
Add additional stations to the respawn point like
base = blahblahbase
dock_with = blahblahbase -
and you get multiple kills
Yep. Strange thing - when you try to shoot already dead station by rockets - ābasedestroyā event appears again :-E
-
anduriell wrote:
How can I respawn the base without serverrestart?http://the-starport.net/freelancer/forum/viewtopic.php?post_id=27591#forumpost27591