Osrs ocsa
From NWNWiki
osrs_ocsa is a script used by OSRS when handling the OnSpellCastAt event.
/////////////////////////////////////////////////////////////////////////////
//
// file:
// osrs_ocsa
//
// purpose:
// OnCutSceneAbort event script.
//
/////////////////////////////////////////////////////////////////////////////
// the include file for Open Source Rule Set events
#include "osrs_inc"
/////////////////////////////////////////////////////////////////////////////
void main()
{
// determine what type of object is calling this script
int iCallingClass = osrs_GetCallerEventClass(OBJECT_SELF);
switch(iCallingClass)
{
///////////////////////////////// module
case I_OSRS_EVENT_CLASS_MODULE:
// Module::OnCutSceneAbort Pre-event
if (!osrs_mo_ocsa_pre())
{
return;
}
// Module::OnCutSceneAbort event
if (!osrs_mo_ocsa())
{
return;
}
// Module::OnCutSceneAbort post-event
osrs_mo_ocsa_post();
break;
}
}
