Client: add new cheat cvar: r_skipWorld
This commit is contained in:
parent
1d7b6fe25f
commit
9602d5eac8
4 changed files with 12 additions and 3 deletions
|
@ -14,6 +14,8 @@
|
|||
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
var bool autocvar_r_skipWorld = false;
|
||||
|
||||
void
|
||||
NSView::NSView(void)
|
||||
{
|
||||
|
@ -31,7 +33,12 @@ NSView::SetupView(void)
|
|||
{
|
||||
setproperty(VF_DRAWENGINESBAR, (float)0);
|
||||
setproperty(VF_DRAWCROSSHAIR, (float)0);
|
||||
setproperty(VF_DRAWWORLD, (float)1);
|
||||
|
||||
if (g_cheats == true)
|
||||
setproperty(VF_DRAWWORLD, autocvar_r_skipWorld ? false : true);
|
||||
else
|
||||
setproperty(VF_DRAWWORLD, (float)1);
|
||||
|
||||
setproperty(VF_ACTIVESEAT, (float)m_iSeat);
|
||||
setproperty(VF_MIN, m_vecPosition);
|
||||
setproperty(VF_SIZE, m_vecSize);
|
||||
|
@ -53,6 +60,7 @@ NSView::SetupView(void)
|
|||
setproperty(VF_ORIGIN, origin);
|
||||
//setproperty(VF_CL_VIEWANGLES, angles);
|
||||
setproperty(VF_ANGLES, angles);
|
||||
pSeat->m_flCameraTime = 0.0f;
|
||||
}
|
||||
|
||||
/* the view may not have gotten the chance to set the client angle early on */
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include "crosshair.h"
|
||||
|
||||
var bool g_net_debug = false;
|
||||
var bool g_cheats = false;
|
||||
|
||||
#define PRINTFLAG(x) if (cvar("net_showUpdates") || g_net_debug) \
|
||||
print(sprintf("%f %s read update %s\n", time, classname, #x));
|
||||
|
|
|
@ -84,6 +84,8 @@ CSQC_Init(float apilevel, string enginename, float engineversion)
|
|||
else
|
||||
cvar_set("_menu_singleplayer", "0");
|
||||
|
||||
g_cheats = (serverkey("*cheats") == "ON") ? true : false;
|
||||
|
||||
WorldSpawn_Init();
|
||||
|
||||
/* end msg */
|
||||
|
|
|
@ -424,10 +424,8 @@ ambient_generic::ReceiveEntity(float isnew, float flChanged)
|
|||
|
||||
if (m_bLoops == true) {
|
||||
if (flChanged & AMBIENT_MODERN) {
|
||||
print("MODERN!\n");
|
||||
Sound_Update(this, CHAN_BODY, Sound_GetID(m_strActivePath), m_flVolume);
|
||||
} else {
|
||||
print("OLD!\n");
|
||||
soundupdate(this, CHAN_BODY,
|
||||
m_strActivePath, m_flVolume, m_flRadius, m_flPitch, 0, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue