Closed johnbartholomew closed 8 years ago
In the long term I'd probably look to have the whole lot farmed out to Lua. If a crime of the appropriate kind occurs, spawn some ships of a particular type. More infrastructure required there, of course. Adding a police
tag would be a good first step.
Well... tags are for models and ships are separated from models now (instead there are define_ship, define_static_ship and define_missile functions). I guess there should be a "shipset" config file for each faction, which would also determine the police ships and make them un-purchasable.
I was thinking of making this part of the factions work I'm looking into (reminds me, must add as an issue!) whereby each faction would define what ship they used for Police duties and what skin/material/texture it used.
That way we'd just have ships, some kind of tag in the ship definition that said "this is a police texture", and then factions would pick which ships they use. Different faction == different police ships.
I've actually fixed this in my lawAndOrder_to_lua-branch
Police ship is set in faction file, or else default is used, which is set in the Lua side.
It's time to make some police skins for other ships? :)
@nozmajner varada is a pretty sweet police ship I think. Alas, my branch triggers a seg fault when loading, which has pretty much halted my work on it for now.
Shouldn't there be a support for more than one police ship per faction? Something like varada or kanara might make excellent interceptors but won't have firepower to pacify a large ship kitted for combat.
impaktor: have you tried rebasing it on the current master? your segfault might have come from a Lua stack overflow, which was fixed last week or so.
@laarmen yes, rebased the branch one week ago on top of 51db8c3ba965dc0ad9646daa45770eebf8271386 (after the many chrash bugs were fixed) - no change.
At the moment, the ladybird is hardcoded as the police ship (see SpaceStation.cpp:473). Probably the tag system should be used instead.
Related: #1221