Is this possible? I want to set the r_lodBiasRigid and r_lodBiasSkinned dvars for other players when they connect to a zombies game but it doesn't seem to actually work for them. Here's my script, what am I doing wrong?
/*
* Black Ops 2 - GSC Studio by iMCSx
*
* Creator : name
* Project : LodofChanger
* Mode : Zombies
* Date : 2019/09/06 - 10:51:44
*
*/
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\gametypes_zm\_hud_message;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill("connected", player);
player thread onPlayerSpawned();
player iprintln("testmessage");
// BiasRigid
if( getDvarint("r_LodBiasRigid") == 0)
setDvar("r_LodBiasRigid", "-1000");
// BiasSkinned
if( getDvarint("r_LodBiasSkinned") == 0)
setDvar("r_LodBiasSkinned", "-1000");
// no Dof
if( getDvarint("r_dof_enable") == 1)
setDvar("r_dof_enable", "0");
}
}
onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;
{
self waittill("spawned_player");
// BiasRigid
if( getDvarint("r_LodBiasRigid") == 0)
setDvar("r_LodBiasRigid", "-1000");
// BiasSkinned
if( getDvarint("r_LodBiasSkinned") == 0)
setDvar("r_LodBiasSkinned", "-1000");
// No Dof
if( getDvarint("r_dof_enable") == 1)
setDvar("r_dof_enable", "0");
}
}
/*
* Black Ops 2 - GSC Studio by iMCSx
*
* Creator : name
* Project : LodofChanger
* Mode : Zombies
* Date : 2019/09/06 - 10:51:44
*
*/
#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes_zm\_hud_util;
#include maps\mp\gametypes_zm\_hud_message;
init()
{
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill("connected", player);
player thread onPlayerSpawned();
player iprintln("testmessage");
// BiasRigid
if( getDvarint("r_LodBiasRigid") == 0)
setDvar("r_LodBiasRigid", "-1000");
// BiasSkinned
if( getDvarint("r_LodBiasSkinned") == 0)
setDvar("r_LodBiasSkinned", "-1000");
// no Dof
if( getDvarint("r_dof_enable") == 1)
setDvar("r_dof_enable", "0");
}
}
onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");
for(;
{
self waittill("spawned_player");
// BiasRigid
if( getDvarint("r_LodBiasRigid") == 0)
setDvar("r_LodBiasRigid", "-1000");
// BiasSkinned
if( getDvarint("r_LodBiasSkinned") == 0)
setDvar("r_LodBiasSkinned", "-1000");
// No Dof
if( getDvarint("r_dof_enable") == 1)
setDvar("r_dof_enable", "0");
}
}