-
Notifications
You must be signed in to change notification settings - Fork 3
/
BottleItem.h
52 lines (31 loc) · 1.31 KB
/
BottleItem.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
38
39
40
41
42
43
44
45
46
47
48
// BottleItem.h
// BottleItem - бутылка с напитком, которую можно разбить
#pragma once
#include "fooditem.h"
class CBottleItem: public CFoodItem
{
private:
typedef CFoodItem inherited;
public:
CBottleItem(void);
virtual ~CBottleItem(void);
virtual void Load (LPCSTR section);
virtual BOOL net_Spawn (LPVOID DC);
virtual void net_Destroy ();
virtual void UpdateCL ();
virtual void OnH_A_Chield ();
virtual void OnH_B_Independent ();
virtual void OnH_A_Independent (){inherited::OnH_A_Independent();}
virtual void OnH_B_Chield (){inherited::OnH_B_Chield();}
void OnEvent (NET_Packet& P, u16 type);
virtual void Hit (float P, Fvector &dir,
CObject* who, s16 element,
Fvector position_in_object_space,
float impulse,
ALife::EHitType hit_type = ALife::eHitTypeWound);
virtual void BreakToPieces();
protected:
//партиклы разбивания бутылки
shared_str m_sBreakParticles;
ref_sound sndBreaking;
};