Originally Posted by
jbubblepop
This goes in the GSC Modding Section If you are talkibg about a script, but
is to disable aiming. I don't think you can pin that directly to people with snipers, sorry.
maybe if you make an if statement like:
Code:
if ( self getCurrentWeapon() == (sniper name here) )
{
allowADS(false)
}
else
{
allowADS(true)
}
or a while statement like:
Code:
while ( self getCurrentWeapon() == (sniper name here) )
{
allowADS(false)
}
And put them in a for statement to make it so it always check the currentWeapon
Put this in the file that will be run frequently like Dvarsettings.
Code:
for( ; ; )
{
while ( self getCurrentWeapon() == (sniper name here) )
{
allowADS(false)
}
}
or just:
Code:
for( ; ; )
{
if ( self getCurrentWeapon() == (sniper name here) )
{
allowADS(false)
}
else
{
allowADS(true)
}
}
If I were you I would make it give you the weapon you want other wise it would be almost miserble like say someone had intervention with fmj it would be
Code:
for( ; ; )
{
while ( self getCurrentWeapon() == cheytac_fmj_mp )
{
allowADS(false)
}
}
but if they had just an intervention it would be
Code:
for( ; ; )
{
while ( self getCurrentWeapon() == cheytac_mp )
{
allowADS(false)
}
}
SO MAKE SURE YOU GIVE THEM YOUR OWN WEAPON!
Or else you would have to code up everysingle attachment for each weapon you want in a (currentWeapon ==) function