mirror of
https://github.com/unknownworlds/NS.git
synced 2024-12-11 13:21:17 +00:00
f44f16d59a
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@168 67975925-1194-0748-b3d5-c16f83f1a3a1
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/***
|
|
*
|
|
* Copyright (c) 1999, 2000, Valve LLC. All rights reserved.
|
|
*
|
|
* This product contains software technology licensed from Id
|
|
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
|
|
* All Rights Reserved.
|
|
*
|
|
* Use, distribution, and modification of this source code and/or resulting
|
|
* object code is restricted to non-commercial enhancements to products from
|
|
* Valve LLC. All other use, distribution, or modification is prohibited
|
|
* without written permission from Valve LLC.
|
|
*
|
|
****/
|
|
#ifndef USERCMD_H
|
|
#define USERCMD_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
typedef struct usercmd_s
|
|
{
|
|
short lerp_msec; // Interpolation time on client
|
|
byte msec; // Duration in ms of command
|
|
vec3_t viewangles; // Command view angles.
|
|
|
|
// intended velocities
|
|
float forwardmove; // Forward velocity.
|
|
float sidemove; // Sideways velocity.
|
|
float upmove; // Upward velocity.
|
|
byte lightlevel; // Light level at spot where we are standing.
|
|
unsigned short buttons; // Attack buttons
|
|
byte impulse; // Impulse command issued.
|
|
byte weaponselect; // Current weapon id
|
|
|
|
// Experimental player impact stuff.
|
|
int impact_index;
|
|
vec3_t impact_position;
|
|
} usercmd_t;
|
|
|
|
#endif // USERCMD_H
|