-
Notifications
You must be signed in to change notification settings - Fork 3
/
EffectorShot.h
41 lines (29 loc) · 1.09 KB
/
EffectorShot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// EffectorShot.h: interface for the CEffectorShot class.
//
#pragma once
#include "CameraEffector.h"
class CEffectorShot : public CCameraEffector
{
Fvector vDispersionDir;
float fAngleCurrent;
float fRelaxSpeed;
float fMaxAngle;
BOOL bActive;
float fDispProbability;
float fHorzDispFactor;
CRandom m_Random;
s32 m_LastSeed;
public:
CEffectorShot (float max_angle, float relax_time , float max_angle_horz, float step_angle_horz);
virtual ~CEffectorShot ();
virtual BOOL Process (Fvector &delta_p, Fvector &delta_d, Fvector &delta_n, float& fFov, float& fFar, float& fAspect);
void Shot (float angle);
void MountedWeaponShot ();
void GetDeltaAngle (Fvector& delta_angle);
virtual void SetRndSeed (s32 Seed);
protected:
void UpdateAngles ();
float fAngleHorz;
float fAngleHorzMax;
float fAngleHorzStep;
};