Tiberian Technologies Scripts Reference Revision: 9000
Loading...
Searching...
No Matches
MuzzleFlashClass.h
1/* Renegade Scripts.dll
2 Copyright 2013 Tiberian Technologies
3
4 This file is part of the Renegade scripts.dll
5 The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License as published by the Free
7 Software Foundation; either version 2, or (at your option) any later
8 version. See the file COPYING for more details.
9 In addition, an exemption is given to allow Run Time Dynamic Linking of this code with any closed source module that does not contain code covered by this licence.
10 Only the source code to the module(s) containing the licenced code has to be released.
11*/
12#ifndef TT_INCLUDE__MUZZLEFLASHCLASS_H
13#define TT_INCLUDE__MUZZLEFLASHCLASS_H
14
15
16
17class RenderObjClass;
18class MuzzleFlashClass
19{
20public:
21 MuzzleFlashClass( void );
22 ~MuzzleFlashClass( void );
23 void Init( RenderObjClass * robj );
24 void Update( bool flashA0, bool flashA1, bool flashB0, bool flashB1 );
25private:
26
27 void UpdateMuzzleFlash(int bone, bool flash, bool& last_flash);
28
29 int MuzzleA0Bone; // 0000
30 int MuzzleA1Bone; // 0004
31 int Rotation; // 0008
32 RenderObjClass* Model; // 000C
33 bool LastFlashA0; // 0010
34 bool LastFlashA1; // 0011
35// Added by scripts
36 int MuzzleB0Bone;
37 int MuzzleB1Bone;
38 bool LastFlashB0;
39 bool LastFlashB1;
40}; // 0014
41#endif