⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 secgun.cpp

📁 this keik game source
💻 CPP
字号:
//-----------------------------------------------------------------------------
//
//  $Logfile:: /Quake 2 Engine/Sin/code/game/secgun.cpp                          $
// $Revision:: 2                                                              $
//   $Author:: Markd                                                          $
//     $Date:: 10/21/98 12:05a                                                $
//
// 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/secgun.cpp                               $
// 
// 2     10/21/98 12:05a Markd
// First time
// 
// 1     10/20/98 11:32p Markd
// 
// DESCRIPTION:
// Securton mounted gun
// 

#include "g_local.h"
#include "item.h"
#include "weapon.h"
#include "genericbullet.h"
#include "secgun.h"


CLASS_DECLARATION( GenericBullet, Secgun, "weapon_secgun" );

ResponseDef Secgun::Responses[] =
	{
	   { &EV_Weapon_Shoot,           ( Response )Secgun::Shoot },
		{ NULL, NULL }
	};

Secgun::Secgun
   (
   )
	
   {
	SetModels( "secgun.def", "view_secgun.def" );
	SetAmmo( NULL, 0, 0 );
   SetType( WEAPON_2HANDED_LO );
   notdroppable = true;
	}


void Secgun::Shoot
	(
	Event *ev
	)

	{
   FireBullets( 1, "300 300 300", 28, 36, DAMAGE_BULLET, MOD_CHAINGUN, false );
	NextAttack( 0 );
	}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -