official-antistasi-community / A3-Antistasi

Antistasi Community Version - work in progress - Discord https://discord.com/invite/TYDwCRKnKX
https://antistasi.de
Other
226 stars 156 forks source link

More things need to be garbage cleaned. #850

Closed SonorousMeerkat closed 4 years ago

SonorousMeerkat commented 4 years ago

Certain drones can be fitted with leaflet dropping capabilities and said leaflets do not get garbage cleaned. This can lead, if a player is being a dick, to significant performance loss.

On a similar vein: Trenches, both GRAD and normal ace should be cleaned.

MeltedPixel commented 4 years ago

Adding onto this, we should look into also cleaning up ejection seats.

SonorousMeerkat commented 4 years ago

Further extension, doors, ejector motors and rotor blades from ka-52s

Toakan commented 4 years ago

The current Garbage cleaning needs to be looked at properly again. If you're looking to use the same method that the current "Surrendered" crate system uses to despawn, an alternative solution would need to be used as it doesn't trigger often enough for effect cleaning.

SonorousMeerkat commented 4 years ago

Another thing: ACE Bodybags

Lazejun commented 4 years ago

Ace Spraycan Decals aswell

jaj22 commented 4 years ago

Found so far:

Propaganda leaflets (all): Leaflet_05_F ACE bodybags: ACE_bodyBagObject ACE trenches: ACE_envelope_big and ACE_envelope_small

The spraycan decals are UserTexture1m_F but it's possible that some more important things use the same object type. I'm not sure if you can determine which texture is being used, as getObjectTextures returns an empty array.

I guess trenches would need a player distance check, so they'll be more complex than a missionObjects delete.

Lazejun commented 4 years ago

rhs_a10_canopy rhs_a10_acesII_seat rhs_f22_canopy RHS_JST_A29_Canopy RHS_JST_A29_Ejection_Seat rhs_ka52_blade rhs_ka52_ejection_vest Might be unimportant rhs_t50_canopy rhs_su25_canopy

some more :D

jaj22 commented 4 years ago

I'm not sure that the canopies and ejection seats are worth clearing, as the quantity of each can never be that high. Each allMissionObjects call takes about 20ms on a fresh Malden start, and other maps may be worse.

On the flip side, it's less stuff to transfer to new players. Kinda depends how long the server runs for between restarts.

SonorousMeerkat commented 4 years ago

We should clean it anyway. when a single ka-50 makes 6 blades, 2 doors, 2 boosters and 2 seats. it stacks up fast.

jaj22 commented 4 years ago

Fair enough. For finding the classnames, what exactly do you need to do to a ka-50 to make it drop all that shit?

SonorousMeerkat commented 4 years ago

use the ejection system in flight.

jaj22 commented 4 years ago

Tested the ka-52 in VR with nearObjects and as far as I can tell, every object it makes is self-cleaned after a few seconds. Maybe a recent RHS change?

jaj22 commented 4 years ago

Full RHS long-term aircraft part list, from testing:

"rhs_a10_acesII_seat" // A-10 and F-22 "rhs_a10_canopy" // other canopies delete on ground contact "rhs_k36d5_seat" // used by all the AFRF stuff