Skip to content

FCNPC 1.7.4

Compare
Choose a tag to compare
@ziggi ziggi released this 15 Aug 17:24
· 320 commits to master since this release

Version notes

  • #84: Add FCNPC_DISABLE_VERSION_CHECK define for add ability to disable version check
  • #84: Additional checks to response data after version request
  • Call FCNPC_OnGiveDamage when an NPC gives damage to another NPC
  • Update error messages (thanks to @WoutProvost)
  • #92: Now plugin tickrate can be changed
  • Add FCNPC_GetUpdateRate, FCNPC_SetTickRate and FCNPC_GetTickRate functions
  • #90: Added declaration for some needed callback functions
  • Removed upper bound for vehicles health
  • #83: Rename definitions

Fixes

  • Now NPC can't give damage to dead NPC
  • #89: Fixed error reporting for invalid and stolen names
  • #93: Fix OnVehicleEntryComplete vehicle ID and angle

New functions

native FCNPC_GetUpdateRate();
native FCNPC_SetTickRate(rate);
native FCNPC_GetTickRate();

Changed defines

#define FCNPC_MOVE_TYPE_AUTO      (-1)
#define FCNPC_MOVE_TYPE_WALK      (0)
#define FCNPC_MOVE_TYPE_RUN       (1)
#define FCNPC_MOVE_TYPE_SPRINT    (2)
#define FCNPC_MOVE_TYPE_DRIVE     (3)

#define FCNPC_MOVE_SPEED_AUTO     (-1.0)
#define FCNPC_MOVE_SPEED_WALK     (0.1552086)
#define FCNPC_MOVE_SPEED_RUN      (0.56444)
#define FCNPC_MOVE_SPEED_SPRINT   (0.926784)

#define FCNPC_MAX_NODES           (64)

#define FCNPC_INVALID_MOVEPATH_ID (-1)
#define FCNPC_INVALID_RECORD_ID   (-1)