This repository has been archived by the owner on Sep 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
hammer.cpp
74 lines (67 loc) · 1.71 KB
/
hammer.cpp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//-----------------------------------------------------------------------------
//
// $Logfile:: /Quake 2 Engine/Sin/code/game/hammer.cpp $
// $Revision:: 4 $
// $Author:: Markd $
// $Date:: 10/04/98 10:25p $
//
// Copyright (C) 1998 by Ritual Entertainment, Inc.
// All rights reserved.
//
// This source is may not be distributed and/or modified without
// expressly written permission by Ritual Entertainment, Inc.
//
// $Log:: /Quake 2 Engine/Sin/code/game/hammer.cpp $
//
// 4 10/04/98 10:25p Markd
// Added IsDroppable
//
// 3 9/29/98 7:07p Markd
// changed models for these weapons
//
// 2 9/24/98 12:03p Markd
// new melee weapons
//
// 1 9/24/98 11:59a Markd
//
// DESCRIPTION:
// Hammer Melee weapon
//
#include "g_local.h"
#include "item.h"
#include "weapon.h"
#include "fists.h"
class EXPORT_FROM_DLL Hammer : public Fists
{
public:
CLASS_PROTOTYPE( Hammer );
Hammer::Hammer();
virtual qboolean IsDroppable( void );
};
CLASS_DECLARATION( Fists, Hammer, NULL);
ResponseDef Hammer::Responses[] =
{
{ NULL, NULL }
};
Hammer::Hammer()
{
#ifdef SIN_DEMO
PostEvent( EV_Remove, 0 );
return;
#endif
SetModels( "sledgeham.def", "view_sledge.def" );
SetAmmo( NULL, 0, 0 );
SetRank( 11, 11 );
strike_reach = 48;
strike_damage = 55;
SetMaxRange( strike_reach );
SetType( WEAPON_MELEE );
kick = 25;
}
qboolean Hammer::IsDroppable
(
void
)
{
return false;
}