-
Notifications
You must be signed in to change notification settings - Fork 20
/
Ammunition.h
36 lines (24 loc) · 876 Bytes
/
Ammunition.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
#pragma once
#include "WeenieObject.h"
class CAmmunitionWeenie : public CWeenieObject
{
public:
CAmmunitionWeenie();
virtual ~CAmmunitionWeenie() override;
virtual class CAmmunitionWeenie *AsAmmunition() { return this; }
virtual void ApplyQualityOverrides() override;
virtual void PostSpawn() override;
virtual int DoCollision(const class EnvCollisionProfile &prof) override;
virtual int DoCollision(const class AtkCollisionProfile &prof) override;
virtual int DoCollision(const class ObjCollisionProfile &prof) override;
virtual void DoCollisionEnd(DWORD object_id) override;
virtual DWORD GetPhysicsTargetID() override { return _targetID; }
void MakeIntoMissile();
void MakeIntoAmmo();
void HandleNonTargetCollision();
void HandleTargetCollision();
DWORD _sourceID = 0;
DWORD _launcherID = 0;
DWORD _targetID = 0;
float _attackPower = 0.0f;
};