mirror of
https://github.com/JezuzLizard/t6-fastfile-mods.git
synced 2025-06-19 07:38:00 -05:00
Add assets for zm_ai_pack mod.
This commit is contained in:
33
zm_ai_pack/scripts/zm/_zm_ai_screecher.csc
Normal file
33
zm_ai_pack/scripts/zm/_zm_ai_screecher.csc
Normal file
@ -0,0 +1,33 @@
|
||||
// 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 );
|
||||
}
|
Reference in New Issue
Block a user