2022-02-08 18:42:28 +00:00
|
|
|
/*
|
|
|
|
server/dummies/generic.qc
|
|
|
|
|
2023-01-14 00:55:40 +00:00
|
|
|
dummys for quakespasm
|
2022-02-08 18:42:28 +00:00
|
|
|
|
|
|
|
Copyright (C) 2021 NZ:P Team
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Dummys that should be here
|
|
|
|
void print(string s) = {};
|
|
|
|
|
|
|
|
#define MOVE_HITMODEL 0
|
|
|
|
|
|
|
|
void() LoadWaypointData = {};
|
|
|
|
|
|
|
|
void () CL_SendWeaponFire =
|
|
|
|
{
|
|
|
|
float return_time;
|
|
|
|
vector Wep_Recoil;
|
|
|
|
|
|
|
|
Wep_Recoil = GetWeaponRecoil(self.weapon);
|
|
|
|
|
|
|
|
msg_entity = self;
|
|
|
|
WriteByte(MSG_ONE, SVC_WEAPONFIRE);
|
|
|
|
return_time = getWeaponRecoilReturn(self.weapon);
|
|
|
|
WriteLong(MSG_ONE, return_time);
|
|
|
|
WriteCoord (MSG_ONE, Wep_Recoil_x);
|
|
|
|
WriteCoord (MSG_ONE, Wep_Recoil_y);
|
|
|
|
WriteCoord (MSG_ONE, Wep_Recoil_z);
|
|
|
|
//self.punchangle = Wep_Recoil;
|
|
|
|
self.recoil_delay = 60/return_time + time;
|
|
|
|
}
|