Posts
40
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!![]() | |
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() | Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum. |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
root\raw\maps\nazi_zombie_factory_teleporter.gsc:
55 if( !IsSplitscreen() )
56 {
57: level.teleport_ae_funcs[level.teleport_ae_funcs.size] = maps\nazi_zombie_factory_teleporter::teleport_aftereffect_fov;
58 }
59 level.teleport_ae_funcs[level.teleport_ae_funcs.size] = maps\nazi_zombie_factory_teleporter::teleport_aftereffect_shellshock;
..
986 // tae indicates to Clientscripts that a teleporter aftereffect should start
987
988: teleport_aftereffect_fov()
989 {
990 setClientSysState( "levelNotify", "tae", self );teleport_aftereffect_fov( localClientNum )
{
println( "***FOV Aftereffect***\n" );
start_fov = 30;
end_fov = 65;
duration = 0.5;
for( i = 0; i < duration; i += 0.017 )
{
fov = start_fov + (end_fov - start_fov)*(i/duration);
SetClientDvar( "cg_fov", fov );
realwait( 0.017 );
}
}
- The reason on why it is random is that they implemented different effects for it (which you already noticed correctly)As you can see, he is calling a function called teleport_aftereffect_fov. - This function (line 988) calls a client state.
![]() | |
![]() | |
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() UGX V.I.P. | |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() | Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum. |
![]() | Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
// call it in maps/<your map>.gsc main function
thread force_fov();
// put it in maps/<your map>.gsc
force_fov()
{
endon("disconnect");
fov = 90;
while(true)
{
if( GetDvarInt("cg_fov") != fov )
SetDvar( "cg_fov", fov );
wait(0.05);
}
}
