



This makes using types more efficient and less error prone, since you can't pass the wrong enum value to a "pev" function by mistake.Īnd last but not least: since Sven Co-op also uses it, there is the potential to connect the two together and use the same script engine. For example, entvars_t can be exposed as a reference counted type with properties array properties are exposed using property getters and setters to provide a uniform representation of its members. Types in C++ can be exposed to scripts exactly as they are. That requires wrapper functions in order to communicate between scripts and the C++ code it's accessing. There are multiple reasons why Angelscript is a good choice for this.įor starters, Angelscript binds directly to C++ code, which makes it more efficient to use than a language like Pawn, which uses cells. It's called the AngelScript Mod Loader, or ASMod for short.Įssentially this plugin is intended to be AMX Mod, only with Angelscript as its scripting language. For the past few days i've been working on a Metamod plugin that uses Angelscript as its scripting language.
