smcameron
smcameron
A couple commits. * d829465edb7b22d568e01cdcf937dcbf42cc9fa7 Cops should not avoid attacking in high security areas * 68bcced7c849d3958f7423a6fecbec7f642a3308 Avoid unintentionally pushing multiple attack frames when player shoots cops
Thanks! Committed as d1bb80c3e9c67cf5ec4d1fb43db139a894ec4926 Minor edits and clarifications to lua-api.txt > What does "name" mean when listening? Good question. I think I meant to use it to allow player ships...
Correct. In snis_server.c it does this: ``` static double register_lua_proximity_callback(const char *callback, const uint32_t oid1, const uint32_t oid2, const double distance) { struct lua_proximity_check *i, *last, *newone; last = NULL;...
> Is that a safe thing to do? Without seeing your code.... I think so.
Updated lua-api.txt c12361fb245d61cc276c93f049485675aa3803e3 Clarify a few questions about lua-api.txt That addresses some of the things mentioned above.
Not really. Planets don't have anything for population. starbases have a lifeform_count field, but I don't think it's accessible from lua. NPC ships also have a lifeform_count field which you...
There is an "object-scanned-event" that you can register a callback for. https://github.com/smcameron/space-nerds-in-space/blob/master/doc/lua-api.txt#L138 Something like: ``` function record_object_scan_event(player_ship_id, object_id) -- do whatever you need to do when some particular object is...
This may be relevant: https://en.wikipedia.org/wiki/File:Wind_speeds_on_Jupiter.png
Mitigated further by: * ed8a17b2aef21ef77a0b3a70a9b748495bb3b786 Make SCIENCE LRS align-to-ship button into a checkbox Instead of the "Align to ship" button being a one-shot deal, it's now a checkbox, and locks...
Committed 2e6e18ab050a8885b745db095fff4d3b24ba6a50 snis_client: prevent infinite window resize event loop The infinite event loop only occurred if you weren't using the window manager to enforce aspect ratio (e.g. you were not...