![]() This structure also provided block-based language constructs that allowed for loops, advanced conditions (via if/else), and custom console, say, and client commands. This introduced a new script structure that allowed authors to create stand-alone script files without relying on packs of multiple. The popularity of the plugin grew rapidly in this timeframe as the community released dozens and dozens of scripts to the public, like the popular MugMod (originally a plugin) and GunGame scripts. In 2005, by community request, EventScripts was updated to become more powerful, adding console commands for logic operations (if/then, while, etc) and the notion of "script packs" which allowed for grouping of event-based configuration files. 'Evie' the EventScripts community mascot. The cross-interaction with other plugins really drove a lot of EventScripts initial popularity. In this way, administrators could do things like change the gravity upon round start, or invoke commands for popular administrator addons like Mani Admin Plugin. Originally the design was to allow administrators to automatically invoke configuration (*.cfg) files whenever important game events happened. The EventScripts plugin was initially released in December 2004 by Mattie Casper. When the game console executes it, EventScripts is given control and expands all of the variables on the line before executing the line's logic. In the example above, "es_tell" is simply an EventScripts console command registered with the game engine. an admin plugin) that also register console commands for admins.Ī simple example script for EventScripts would look like this:Įs_tell event_var(userid) You were attacked by event_var(es_attackername) This allows the scripts to interact with any other plugin (e.g. When an event fires, EventScripts passes the registered parts of the script to the Valve command console and stores the event-specific information if a script later needs it.Īlmost all interaction between scripts and the Source engine happens through special console commands that EventScripts or other plugins register. When an administrator loads a script (typically through a configuration file via "es_load "), EventScripts parses out the block structures in the file and stores them in memory. In this way, EventScripts continues to be an important factor in the Source gaming community, particularly for Counter-Strike Source.Īt its core, EventScripts is just a Valve Source Plugin which passes information it receives from the Source engine to loaded scripts. Over time the goals of the project have evolved into ensuring eternal backwards compatibility, providing a simple interface for non-experts, and delivering active support and help via forums. It also allows scripts to register server console commands themselves and interact heavily with the Source engine to create effects and interact with players/entities. The engine is heavily event-driven, as the name implies, allowing a scripter or game server administrator to take action whenever an event occurs in the game. It was designed to be simple to use for administrators since experienced coders have access to creating Source plugins via Valve's Source SDK in C++. 6 3rd Party Information for Steam PublishingĪs of version 1.5, the scripting engine of EventScripts is similar to a command-line shell (like batch) built on top of the Source engine's console.Our Web site contains many useful example scripts as well as full details of the events that EventScripts supports, and the parameters it passes for each event. EventScripts also passes parameters to the scripts that it executes that provide additional information about the event that triggered execution. Perhaps you would like to execute a script every time the track changes in iTunes, or whenever your Internet connection drops? Maybe you'd like to trigger a script every time the location of your computer changes? Or maybe you'd like to be able to trigger scripts on your Mac from your iPhone, iPad or iPod?Īll these and much more are possible with EventScripts, and its free companion iOS application EventScripts Mobile. EventScripts is a simple application for triggering AppleScripts or shell scripts whenever certain events occur. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |