Mentrillum / Slender-Fortress-Modified-Versions

A modification of Team Fortress 2 based on the game Slender: The Eight Pages.
GNU General Public License v3.0
33 stars 22 forks source link

Mark natives as optional if library is not required & some fixes #135

Closed MAGNAT2645 closed 4 months ago

MAGNAT2645 commented 4 months ago

The title is self-explanatory. I wanted to use SF2 natives as optional integration

#undef REQUIRE_PLUGIN
#tryinclude <sf2>
#define REQUIRE_PLUGIN

and found out there's no SetNTVOptional so i got this error

Unable to load plugin "aon/store-inventory.smx": Native "SF2_IsRunning" was not found

I hope I didn't miss any native.

Also I renamed SF2_ChaserBossEntity.GetAttackIndex to SF2_ChaserBossEntity.AttackIndex.get since there's no GetAttackIndex method in the include file. And there was a compilation error about DEBUG_BOSS_EYES in sf2/npc/entities/chaser/entity.sp if DEBUG is not defined.