Begin Werewolf_Running_soundsWhile ( Player->GetSoundPlaying, "WolfRun" ) Player->PlaySound3D, "WereWolfRun"EndWhileEnd
Begin Werewolf_Running_soundsWhile ( Player->GetSoundPlaying, "WolfRun" ) StopSound, "WolfRun" Player->PlaySound3D, "WereWolfRun"EndWhileEnd
Begin Werewolf_Running_Sounds Short doonce If ( DoOnce == 0 ) If ( getPCRunning == 1 ) player->playloopsound3d, "WerewolfRun" set DoOnce to 1 endif endif If ( DoOnce == 1 ) If ( getPCRunning == 0 ) If ( player->getsoundplaying "WereWolfRun" == 1 ) player->stopsound, "WerewolfRun" set DoOnce to 0 endif endif endifend
Begin Werewolf_Running_Soundsshort stoppedif ( GetPCRunning ) if ( player->GetSoundPlaying "WerewolfRun" ) return endif player->PlaySound3D "WerewolfRun" if ( stopped ) set stopped to 0 endif returnendifif ( stopped ) returnendifplayer->StopSound "WerewolfRun"set stopped to 1end
Begin AI_Attack Short HasSpell Float HasWeaponDrawn Float HasHealth Float Timer long AIRef ;change the variables to whatever you want long tmp ifx ( AIRef ) setx AIRef to xNextRef AIRef ;finds the next NPC or creature in the cell else setx AIRef to xFirstNPC ;finds the first NPC or creature in the cell endif if ( AIRef == 0 ) ;end of list or empty cell return endif setx tmp to AIRef->xRefType if ( tmp != 1598246990 ) ;if not type NPC if ( tmp != 1095062083 ) ;if not type Creature return endif endif xSetRef AIRef set HasSpell to ( Getspell, "Ai Realistic Striking" ) If ( HasSpell != 1 ) if ( MenuMode == 0 ) AIRef->Addspell, "Ai Realistic Striking" elseif ( MenuMode == 1 ); AIRef->Removespell, "Ai Realistic Striking" endif endifend