how to add stuff
Posted: April 26th, 2009, 9:30 pm
hi there,
i'm just wondering how i would set stuff for allies but not axis
say like setting the r_filmTweakBrightness to 1 etc
maybe its in _teams.gsc or do you make them spawn with it?
this is what i have but it doesn't work
anyhelp
i'm just wondering how i would set stuff for allies but not axis
say like setting the r_filmTweakBrightness to 1 etc
maybe its in _teams.gsc or do you make them spawn with it?
this is what i have but it doesn't work

Code: Select all
init()
{
thread Onplayerconnect();
}
OnSpawnPlayer()
{
while(1)
{
self waittill("spawned");
self thread allies();
}
}
allies()
{
self endon("game_ended");
self endon("disconnect");
team = GetAssignedTeam( player );
wait 1;
If ( team == 2);
{
setDvar( "r_filmUseTweaks", "1" );
setDvar( "r_filmTweakEnable", "1" );
setDvar( "r_filmTweakBrightness", "-0.23" );
}
wait 0.05;
}
anyhelp