mirror of
https://github.com/reaaLx/nx1-gsc-dump.git
synced 2025-09-18 06:27:27 +00:00
Incomplete SP dump provided by Louvenarde
This commit is contained in:
29
maps/_cagedchickens.gsc
Normal file
29
maps/_cagedchickens.gsc
Normal file
@@ -0,0 +1,29 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\_utility;
|
||||
#include maps\_anim;
|
||||
|
||||
initChickens()
|
||||
{
|
||||
// wait until the end of the frame so that maps can init their cages
|
||||
// in their _anim instead of only above _load
|
||||
waittillframeend;
|
||||
|
||||
cages = getentarray( "caged_chicken", "targetname" );
|
||||
array_thread( cages, ::spawnChicken );
|
||||
}
|
||||
|
||||
spawnChicken()
|
||||
{
|
||||
chicken = spawn_anim_model( "chicken" );
|
||||
self thread anim_single_solo( chicken, "cage_freakout" );
|
||||
|
||||
anime = chicken getanim( "cage_freakout" );
|
||||
starttime = RandomFloatRange( 0, 1.0 );
|
||||
chicken SetAnimTime( anime, starttime );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
chicken playsound( "animal_chicken_idle", "sounddone" );
|
||||
chicken waittill( "sounddone" );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user