BasicPawn
BasicPawn copied to clipboard
BasicPawn own's internal #include
Does BasicPawn has own service #include to know that the code is being compiled by this specific compiler?
Well, you may I ask why... I'd like to make some code (like Left 4 DHooks Direct) be compatible with BasicPawn (in sense of the latest SM version supported by BP) without breaking original code style.
E.g.:
enum L4D2WeaponId
{
...
#if defined BasicPawn
L4D2WeaponId_Max
#endif
}
#if defined BasicPawn
static const char L4D2WeaponWorldModel[L4D2WeaponId][] =
#else
static const char L4D2WeaponWorldModel[L4D2WeaponId_Max][] =
#endif
{
...
}
Some language features used above are only supported by the newest SM.
No there is no BasicPawn include nor define. The syntax doesnt seem to have changed since i last time used it? So BasicPawn should still work with new compilers, you just cant compile them sadly.
I will get back to BasicPawn and fix this issue eventually. Currently i have been working on another big project and havent touched BasicPawn in a while. That doesnt mean its dead tho.
You can use DosMike's fork that made a workaround for this issue. https://github.com/DosMike/BasicPawn
Did you try to define BasicPawn=1 in this line? Works for me.