39 lines
No EOL
599 B
Text
39 lines
No EOL
599 B
Text
#include maps\_utility;
|
|
main()
|
|
{
|
|
maps\_load::main();
|
|
watersimenable(true);
|
|
setVolFog(789, 692, 384, -30, 0.242, 0.279, 0.311, 0.0);
|
|
|
|
VisionSetNaked("mak",0.1);
|
|
|
|
level thread viewpos_dvar();
|
|
}
|
|
|
|
viewpos_dvar()
|
|
{
|
|
wait_for_first_player();
|
|
|
|
hud = NewDebugHudElem();
|
|
hud.x = 400;
|
|
hud.y = 400;
|
|
hud.alpha = 0;
|
|
|
|
SetDvar( "show_viewpos", "0" );
|
|
|
|
players = get_players();
|
|
while( 1 )
|
|
{
|
|
if( GetDvarInt( "show_viewpos" ) > 0 )
|
|
{
|
|
hud.alpha = 1;
|
|
hud SetText( "viewpos " + players[0].origin );
|
|
}
|
|
else
|
|
{
|
|
hud.alpha = 0;
|
|
}
|
|
|
|
wait( 0.5 );
|
|
}
|
|
} |