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

📄 player.cpp

📁 this keik game source
💻 CPP
📖 第 1 页 / 共 5 页
字号:
// Tweaked kick code
// 
// 269   9/02/98 7:47p Aldie
// Added ValidPlayerModels list
// 
// 268   9/02/98 12:54p Markd
// put in proper teleportation stuff
// 
// 267   9/02/98 11:57a Markd
// Put in walk_fire
// 
// 266   9/02/98 11:40a Markd
// really freeze the player when frozen
// 
// 265   9/01/98 7:46p Aldie
// Added itemname to inventory stuff
// 
// 264   9/01/98 12:10p Markd
// fixed run_firing while crouching
// 
// 263   8/31/98 7:45p Aldie
// Updated surface data structure and removed surfinfo field
// 
// 262   8/31/98 7:16p Markd
// Fixed player animation naming convention
// 
// 261   8/31/98 5:42p Aldie
// Changed powerups timer, added cloak
// 
// 260   8/30/98 7:29p Markd
// Put in auto-dead camera where after 10 seconds, player will follow the
// endnode1 path
// 
// 259   8/29/98 9:45p Jimdose
// Added call info to G_Trace
// 
// 258   8/28/98 8:06p Markd
// made crosshair change when targetting
// 
// 257   8/28/98 7:54p Markd
// Put in taunttime govenor on taunting
// 
// 256   8/28/98 4:13p Markd
// Made taunt into a VoiceSound so that AI would interact
// 
// 255   8/27/98 9:03p Jimdose
// Made grav a reference
// 
// 254   8/27/98 7:17p Aldie
// Don't draw the weapon when in a console.
// 
// 253   8/27/98 6:23p Jimdose
// Fixed bug with player walking in place
// 
// 252   8/27/98 4:50p Markd
// Fixed falling damage and detach things when dead
// 
// 251   8/27/98 2:30p Aldie
// Added adrenaline and more gravity stuff
// 
// 250   8/26/98 8:47p Aldie
// Removed a printf
// 
// 249   8/26/98 8:46p Aldie
// Put in velocity limiter for the gravity path nodes
// 
// 248   8/26/98 6:19p Aldie
// Fix for spidermine cameras
// 
// 247   8/25/98 8:02p Jimdose
// Now get the gravaxis from the starting location
// 
// 246   8/25/98 7:54p Markd
// Added third-person crosshair back into the game
// 
// 245   8/25/98 6:18p Aldie
// New spidermine and detonator support
// 
// 244   8/25/98 5:50p Markd
// Added THIRDPERSON support for client side crosshair
// 
// 243   8/25/98 4:11p Markd
// Added taunt support
// 
// 242   8/24/98 6:53p Jimdose
// Fixed falling damage on alternate gravity axis
// Fixed bug with inverted gravity axis
// 
// 241   8/24/98 5:35p Aldie
// Added projectile camera functionality
// 
// 240   8/24/98 3:49p Jimdose
// Fixed bug with inverted gravity axis
// Made fabric cause no falling damage
// 
// 239   8/24/98 11:32a Markd
// Added Start method to threads, repladed all ProcessEvent(
// EV_ScriptThread_execute) with thread->Start( -1 )
// 
// 238   8/22/98 9:57p Markd
// Only clear fade if not a cinematic
// 
// 237   8/22/98 9:36p Jimdose
// Added support for alternate gravity axis
// 
// 236   8/22/98 1:22a Markd
// Added Director.PlayerSpawned call, also made skipthread make sure there is
// at least one character
// 
// 235   8/21/98 7:38p Markd
// Fixed climbing code
// 
// 234   8/21/98 6:36p Markd
// made it so climbing works when climbing down as well
// 
// 233   8/21/98 3:47p Markd
// Only exit camera if strafing or movement are above a threshold
// 
// 232   8/21/98 1:05a Jimdose
// Got the movement and the model angles working for the alt-gravity stuff
// 
// 231   8/19/98 7:45p Jimdose
// Fixed viewhieght during noclip
// 
// 230   8/19/98 4:48p Aldie
// Fixed a bug in falling damage
// 
// 229   8/18/98 11:08p Markd
// Added new Alias System
// 
// 228   8/18/98 10:02p Jimdose
// Changed ClearPathTo to CheckMove
// 
// 227   8/17/98 8:59p Jimdose
// Added WhatIs
// 
// 226   8/17/98 7:45p Markd
// Added lava and slime 
// 
// 225   8/17/98 6:19p Markd
// Changed SetCamera to a Player method
// Got out of cinematic if in Pain
// 
// 224   8/17/98 4:34p Markd
// Put in camera exiting and no-falling-damage
// 
// 223   8/17/98 3:28p Jimdose
// Started adding code for varying gravity vectors
// 
// 222   8/17/98 2:56p Aldie
// Added weapon use command
// 
// 221   8/15/98 3:00p Markd
// Fixed camera/console issues with weapons
// 
// 220   8/14/98 8:14p Aldie
// Added generic overlay system
// 
// 219   8/13/98 8:11p Markd
// Made sure invulnerability gets reset in Init function
// 
// 218   8/13/98 8:11p Aldie
// Don't do pain animation if damage is below threshold
// 
// 217   8/13/98 1:53p Aldie
// Fixed initialization of pm
// 
// 216   8/12/98 6:03p Aldie
// Added a shield timer
// 
// 215   8/07/98 6:46p Aldie
// If you're dead, don't do prediction
// 
// 214   8/07/98 6:00p Aldie
// Credit frags to the correct player when falling damage kills someone.
// 
// 213   8/06/98 10:29p Markd
// Scaled down debris damage
// 
// 212   8/06/98 7:05p Markd
// Added crouch flag to effects
// 
// 211   8/03/98 7:36p Markd
// Put in debris damage
// 
// 210   8/03/98 1:15p Aldie
// Added QuantumD to give all
// 
// 209   8/02/98 9:00p Markd
// Merged code 3.17
// 
// 208   7/31/98 8:09p Jimdose
// Script commands now include flags to indicate cheats and console commands
// 
// 207   7/31/98 4:20p Jimdose
// Added GiveHealthCheat
// 
// 206   7/30/98 9:28p Jimdose
// Allows the Give cheat if Cheats are enabled
// 
// 205   7/29/98 2:32p Aldie
// Changed health to a float
// 
// 204   7/26/98 2:14p Aldie
// Force respawns in single player
// 
// 203   7/26/98 1:56p Aldie
// Respawn automatically
// 
// 202   7/26/98 12:34p Jimdose
// Changed cheat codes
// 
// 201   7/26/98 9:34a Markd
// Took out ToggleViewMode while in a vehicle
// 
// 200   7/26/98 4:15a Aldie
// Exit console = show stats
// 
// 199   7/26/98 1:18a Aldie
// Camera based consoles 
// 
// 198   7/26/98 12:50a Markd
// only do a reload on use, if not using something else
// 
// 197   7/26/98 12:45a Aldie
// Try to fix player death stuck anims
// 
// 196   7/25/98 7:13p Markd
// forgot to if_demo the spider mines
// 
// 195   7/25/98 7:04p Markd
// Eliminated unused weapons for demo
// 
// 194   7/25/98 5:42p Markd
// Fixed player runfire bug
// 
// 193   7/25/98 5:23p Markd
// Added GotKill to player
// 
// 192   7/25/98 4:36p Aldie
// Fade stuff
// 
// 191   7/24/98 10:04p Aldie
// Gibs and fade tweaks
// 
// 190   7/24/98 7:33p Aldie
// Changed method for hiding hud
// 
// 189   7/24/98 6:22p Jimdose
// Falling damage is now based on surface type (grass, concrete, wood, etc.)
// 
// 188   7/24/98 3:48p Aldie
// Fixed splashing sounds and hardcoded models, etc...
// 
// 187   7/23/98 9:56p Aldie
// Fixed obits and added hud command.
// 
// 186   7/23/98 7:12p Aldie
// Fun with gibs
// 
// 185   7/23/98 6:17p Aldie
// Updated damage system and fixed some damage related bugs.  Also put tracers
// back to the way they were, and added gib event to funcscriptmodels
// 
// 184   7/23/98 1:50p Aldie
// give armor in give all
// 
// 183   7/23/98 12:29p Markd
// Put in climbing support
// 
// 182   7/22/98 10:21p Markd
// Added support for multi-handed weapons and firing
// 
// 181   7/22/98 7:03p Aldie
// More MOD messages and remove actors when we clean them out.
// 
// 180   7/22/98 5:28p Markd
// FIxed third person camera stuff
// 
// 179   7/21/98 9:04p Markd
// Added UpdateMusic and stuff
// 
// 178   7/21/98 1:10p Aldie
// Added meansofdeath to obituaries
// 
// 177   7/20/98 6:54p Aldie
// Moved cancellation of fades to init function
// 
// 176   7/20/98 5:40p Aldie
// Fixed selected item stats.
// 
// 175   7/20/98 12:09p Markd
// Added vehicle anim support
// 
// 174   7/19/98 10:18p Aldie
// You should not be able to override the death animation.
// 
// 173   7/19/98 7:38p Markd
// Made sure to get rid of ENVMAPPED and DLIGHT in Init function
// 
// 172   7/19/98 5:40p Markd
// Fixed shields, added takeItem support
// 
// 171   7/19/98 3:42p Markd
// Fixed fade out to all players
// 
// 170   7/18/98 7:36p Aldie
// Added support for fades
// 
// 169   7/18/98 4:02p Markd
// Added vehicle check for snapintial
// 
// 168   7/18/98 3:53p Markd
// Put in vehicle code that prevents the player from going into other
// animations while in vehicle
// 
// 167   7/17/98 4:01p Markd
// Added UseWeapon method and weapons for vehicle
// 
// 166   7/17/98 11:31a Aldie
// Added clipammo and some reloading stuff when the player switches weaps
// 
// 165   7/15/98 11:23p Markd
// Added FL_SHIELDS support
// 
// 164   7/15/98 9:58p Markd
// Clear out environment mapping when respawning
// 
// 163   7/15/98 12:00a Markd
// Added location based pain animations
// 
// 162   7/14/98 9:54p Markd
// Fixed camera stuff
// 
// 161   7/14/98 5:37a Jimdose
// Removed definition of player height (already in q_shared.h)
// 
// 160   7/14/98 5:35a Jimdose
// Removed unused variable "bob"
// now initializing v_dmg_time.  Should fix bug where player's view is screwy
// when starting a new map
// 
// 159   7/13/98 5:00p Aldie
// Added dead player bodies with gibbing
// 
// 158   7/12/98 9:48p Markd
// Fixed weird lerping problem when pausing and unpausing the game and viewing
// from a cinematic camera or third person.  Turned out that
// client->ps.pmove.origin was being overwritten by incoming client movement
// commands.  So when you have an external camera, the origin is saved and
// restored around pmove movement.
// 
// 157   7/12/98 6:34p Markd
// Fixed camera stuff so that player automatically warps to camera properly
// 
// 156   7/11/98 8:58p Markd
// Added testthread command
// 
// 155   7/11/98 8:22p Jimdose
// Players are no longer non-solid when the respawn
// 
// 154   7/10/98 11:18p Jimdose
// Removed third-person crosshair
// 
// 153   7/10/98 11:11p Jimdose
// Players only swim when the water is deep enough
// no longer switch weapons after dropping them when killed
// 
// 152   7/09/98 11:39p Aldie
// Don't draw scores when in DM
// 
// 151   7/09/98 10:39p Aldie
// Moved bodyparts to game
// 
// 150   7/08/98 3:11p Aldie
// First try at spectator mode
// 
// 149   7/07/98 8:06p Aldie
// Spectator and dead stuff
// 
// 148   7/07/98 6:08p Aldie
// Gibs, drop weaps, water swim
// 
// 147   7/03/98 12:02p Aldie
// Made player init on the model specified in client data
// 
// 146   7/01/98 7:02p Aldie
// Mission computer and removed some crosshair stuff for zoom
// 
// 145   7/01/98 4:38p Aldie
// Moved some stats around
// 
// 144   6/28/98 3:43p Markd
// removed precaching from player
// 
// 143   6/27/98 4:25p Aldie
// Made a STAT_WEAPONLIST
// 
// 142   6/25/98 8:47p Markd
// Added keyed items for Triggers, Rewrote Item class, rewrote every pickup
// method
// 
// 141   6/25/98 7:31p Aldie
// Changed the armor stats
// 
// 140   6/24/98 1:37p Aldie
// Implementation of inventory system and picking stuff up
// 
// 139   6/22/98 2:04p Jimdose
// Added vehicles back in
// Organized the control code a bit more.  May want to make physics into a
// class
// 
// 138   6/20/98 6:21p Aldie
// Added modelindex for inventory stat
// 
// 137   6/20/98 2:13p Aldie
// Inventory system stats
// 
// 136   6/19/98 6:36p Aldie
// Put some more inventory managment back in
// 
// 135   6/18/98 9:25p Aldie
// Added inventory commands
// 
// 134   6/18/98 3:57p Aldie
// Changed the zooming alpha belnd color
// 
// 133   6/17/98 5:41p Aldie
// Returned scale of player back to normal
// 
// 132   6/17/98 3:03p Markd
// Changed NumArgs back to previous behavior
// 
// 131   6/17/98 2:47p Markd
// Inverted roll on player
// 
// 130   6/17/98 10:54a Aldie
// Removed the scaling of player's pitch
// 
// 129   6/15/98 10:48p Jimdose
// Added AddPathNode
// 
// 128   6/13/98 8:20p Jimdose
// Removed optimize path stuff
// 
// 127   6/10/98 7:53p Markd
// Made NumArgs behave correctly like argc
// 
// 126   6/10/98 2:10p Aldie
// Updated damage function.
// 
// 125   6/08/98 7:12p Markd
// put in assertions for ammo_types and armor_types so that the game would not
// crash
// 
// 124   6/08/98 7:15p Aldie
// Added SpiderMines
// 
// 123   6/08/98 11:34a Aldie
// Updated "give all" command
// 
// 122   6/05/98 6:25p Aldie
// Added armor stats to player
// 
// 121   6/04/98 4:35p Markd
// changed action_level decay
// 
// 120   6/03/98 4:38p Markd
// Added gunoffset and gunangle, changed the way weapons work with the camera,
// removed weapon parameter from SetCamerablablah
// 
// 119   5/28/98 8:01p Markd
// Clamped action_level at 80 
// 
// 118   5/28/98 7:17p Markd
// Tweaked music and action_level
// 
// 117   5/28/98 6:01p Markd
// moved action_level stuff around
// 
// 116   5/27/98 8:36p Markd
// Put in swimming, got rid of some "Give All" weapons
// 
// 115   5/27/98 7:04a Markd
// put in primitive action level
// 
// 114   5/27/98 6:32a Markd
// cleared out damageskin state in respawn
// 

⌨️ 快捷键说明

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