Skip to content
Snippets Groups Projects
Select Git revision
  • b9950b1cd1bee8402122e536f39be64c2baeffab
  • next default protected
  • menu-edits
  • loopedsounds
  • po2-32x32-fix
  • udmf-linedef-executors
  • udmf-lighting
  • udmf-polyobjects
  • udmf-scrollers
  • udmf-plane-linedefs
  • udmf-fofs-mkii
  • remove-unused-function
  • dave-credits
  • taglists-bruh
  • let-mixed-declarations
  • netxcmd-refactor
  • master
  • ksf-wadfiles
  • 11-array-bounds
  • 610-p_setupstateanimation-array-bounds-warnings-on-gcc-11
  • ipv6
  • SRB2_release_2.2.9
  • SRB2_release_2.2.8
  • SRB2_release_2.2.7
  • SRB2_release_2.2.6
  • SRB2_release_2.2.5
  • SRB2_release_2.2.4
  • SRB2_release_2.2.3
  • SRB2_release_2.2.2
  • SRB2_release_2.2.1
  • SRB2_release_2.2.0
  • SRB2_release_2.1.25
  • SRB2_release_2.1.24
  • SRB2_release_2.1.23
  • SRB2_release_2.1.22
  • SRB2_release_2.1.21
  • SRB2_release_2.1.20
  • SRB2_release_2.1.19
  • SRB2_release_2.1.18
  • td-release-v1.0.0
  • SRB2_release_2.1.17
41 results

i_main.c

Blame
  • Forked from STJr / SRB2
    Source project has a limited visibility.
    p_user.c 384.11 KiB
    // SONIC ROBO BLAST 2
    //-----------------------------------------------------------------------------
    // Copyright (C) 1993-1996 by id Software, Inc.
    // Copyright (C) 1998-2000 by DooM Legacy Team.
    // Copyright (C) 1999-2023 by Sonic Team Junior.
    //
    // This program is free software distributed under the
    // terms of the GNU General Public License, version 2.
    // See the 'LICENSE' file for more details.
    //-----------------------------------------------------------------------------
    /// \file  p_user.c
    /// \brief New stuff?
    ///        Player related stuff.
    ///        Bobbing POV/weapon, movement.
    ///        Pending weapon.
    
    #include "doomdef.h"
    #include "i_system.h"
    #include "d_event.h"
    #include "d_net.h"
    #include "g_game.h"
    #include "p_local.h"
    #include "r_fps.h"
    #include "r_main.h"
    #include "s_sound.h"
    #include "r_skins.h"
    #include "d_think.h"
    #include "r_sky.h"
    #include "p_setup.h"
    #include "m_random.h"
    #include "m_misc.h"
    #include "i_video.h"
    #include "p_slopes.h"
    #include "p_spec.h"
    #include "r_splats.h"
    #include "z_zone.h"
    #include "w_wad.h"
    #include "hu_stuff.h"
    // We need to affect the NiGHTS hud
    #include "st_stuff.h"
    #include "lua_script.h"
    #include "lua_hook.h"
    #include "b_bot.h"
    // Objectplace
    #include "m_cheat.h"
    // Thok camera snap (ctrl-f "chalupa")
    #include "g_input.h"
    
    #ifdef HW3SOUND
    #include "hardware/hw3sound.h"
    #endif
    
    #ifdef HWRENDER
    #include "hardware/hw_light.h"
    #include "hardware/hw_main.h"
    #endif
    
    #if 0
    static void P_NukeAllPlayers(player_t *player);
    #endif
    
    //
    // Jingle stuff.
    //
    
    jingle_t jingleinfo[NUMJINGLES] = {
    	// {musname, looping, reset, nest}
    	{""        , false}, // JT_NONE
    	{""        , false}, // JT_OTHER
    	{""        , false}, // JT_MASTER