mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-26 06:20:58 +00:00
6f80af0426
- Implemented a hybrid wallwalk -- the skulk now only "sticks" if +speed is held down - Added an IN_WALK flag, syncronized with the server state that can be used in the application to check whether a player is walking - Walljump is reverted to only jump in the direction the player is looking again, since a running player jumping from a wall usually wants to strafe inwards to stay on the wall Untickeded bug: - Fixed bug that caused leap to not behave properly from shallow water git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@191 67975925-1194-0748-b3d5-c16f83f1a3a1
38 lines
1.1 KiB
C
38 lines
1.1 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 IN_BUTTONS_H
|
|
#define IN_BUTTONS_H
|
|
#ifdef _WIN32
|
|
#pragma once
|
|
#endif
|
|
|
|
#define IN_ATTACK (1 << 0)
|
|
#define IN_JUMP (1 << 1)
|
|
#define IN_DUCK (1 << 2)
|
|
#define IN_FORWARD (1 << 3)
|
|
#define IN_BACK (1 << 4)
|
|
#define IN_USE (1 << 5)
|
|
#define IN_CANCEL (1 << 6)
|
|
#define IN_LEFT (1 << 7)
|
|
#define IN_RIGHT (1 << 8)
|
|
#define IN_MOVELEFT (1 << 9)
|
|
#define IN_MOVERIGHT (1 << 10)
|
|
#define IN_ATTACK2 (1 << 11)
|
|
#define IN_WALK (1 << 12)
|
|
#define IN_RELOAD (1 << 13)
|
|
#define IN_ALT1 (1 << 14)
|
|
#define IN_SCORE (1 << 15) // Used by client.dll for when scoreboard is held down
|
|
|
|
#endif // IN_BUTTONS_H
|