Version 2 Build Beta 2.1 (0.5.1)
- fixed animation not turning on again after stopping an NPC
- fixed NPC respawn when they were destroyed by the game
- fixed a bug with caching the waypoints for NPCs that caused them to be invalid after stage change
- fixed math functions Max and Min
- fixed graphic glitches and animation for custom NPCs in conjunction with the sex system
- fixed Size function for NPC objects
- added Vector3Distance function
- added functions for NPC object to check more of the values that were only in _state.NPCs (like position)
- added a constructor for the NPC object that lets you link to an existing NPC
- added a functions for NPCs to initiate sex, change position and end sex
- added a function for NPCs to toggle the follow mode that is also used by the seduction skill
Lots of necessary fixes, because I didn't test it extensively before Christmas.
I also tried the previous version with the seduction skill and noticed several problems, that should be fixed now.
I've also added function to trigger sex by script, which also works when the Seduction skill is turned off. You can than still be caught by other NPCs, which could make for some interesting missions involving discreet sex.
You can now also link an NPC object to NPCs created by the game, but I've deactivated the functions for waypoints and respawning, because I fear that this could break the game if NPCs don't behave as the game expects.
I've also changed how the _state variable functions internally, so that it only updates the mission, cosplay and NPC states when they are queried. That should improve best-case performance.