mirror of
https://github.com/JezuzLizard/t6-fastfile-mods.git
synced 2025-04-22 14:35:44 +00:00
34 lines
893 B
Plaintext
34 lines
893 B
Plaintext
// T6 GSC SOURCE
|
|
// Generated by https://github.com/xensik/gsc-tool
|
|
#include clientscripts\mp\_utility;
|
|
#include clientscripts\mp\zombies\_zm_utility;
|
|
#include clientscripts\mp\_visionset_mgr;
|
|
|
|
precache()
|
|
{
|
|
|
|
}
|
|
|
|
main()
|
|
{
|
|
if ( getDvar( "mapname" ) == "zm_transit" )
|
|
{
|
|
return;
|
|
}
|
|
clientscripts\mp\zombies\_callbacks::onfinalizeinitialization_callback( ::screecher_clientfields );
|
|
}
|
|
|
|
screecher_clientfields()
|
|
{
|
|
clientscripts\mp\_visionset_mgr::vsmgr_register_overlay_info_style_blur( "zm_ai_screecher_blur", 1, 1, 0.1, 0.25, 4 );
|
|
registerclientfield( "actor", "render_third_person", 1, 1, "int", ::screecher_render_clientfield_cb, 0 );
|
|
}
|
|
|
|
screecher_render_clientfield_cb( localclientnum, oldval, newval, bnewent, binitialsnap, fieldname, bwasdemojump )
|
|
{
|
|
if ( newval )
|
|
self setrenderinthirdpersonspectate( 1 );
|
|
else
|
|
self setrenderinthirdpersonspectate( 0 );
|
|
}
|