Version notes
- Add FCNPC_GetAimingPlayer function
- Add FCNPC_PausePlayingNode and FCNPC_ResumePlayingNode functions
- Add FCNPC_OnWeaponStateChange callback
- #28: Add offset for FCNPC_AimAtPlayer
- Removed node type defines
- Additional parameters for FCNPC_PlayNode (like FCNPC_GoTo function)
- Update citiziens script
Fixes
- Codestyle fixes
- Fix Z for nodes
- Fix last weapon reload
- Fix FCNPC_GetNodeType
New and changed functions
native FCNPC_AimAtPlayer(npcid, playerid, bool:shoot = false, shoot_delay = -1, bool:setangle = true, Float:offset_x = 0.0, Float:offset_y = 0.0, Float:offset_z = 0.0);
native FCNPC_GetAimingPlayer(npcid);
native FCNPC_PlayNode(npcid, nodeid, move_type = MOVE_TYPE_AUTO, Float:speed = MOVE_SPEED_AUTO, bool:UseMapAndreas = false, Float:radius = 0.0, bool:setangle = true);
native FCNPC_PausePlayingNode(npcid);
native FCNPC_ResumePlayingNode(npcid);
New callbacks
forward FCNPC_OnWeaponStateChange(npcid, weapon_state);