mirror of
https://github.com/JezuzLizard/t6-fastfile-mods.git
synced 2025-04-19 21:32:53 +00:00
Start work adding documentation for builtins.
This commit is contained in:
parent
23115982fe
commit
2ab3179a84
@ -11430,10 +11430,102 @@
|
|||||||
"origin" "100 100 -500"
|
"origin" "100 100 -500"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"classname" "script_struct"
|
"targetname" "culdesac_yellow_zone_spawners"
|
||||||
"script_noteworthy" "brutus_location"
|
"script_noteworthy" "brutus_location"
|
||||||
"targetname" "culdesac_yellow_zone_spawner"
|
"origin" "319.748 474.665 -60.8272"
|
||||||
"origin" "367 454 -60"
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "culdesac_yellow_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "483.841 -78.011 -63.875"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "culdesac_green_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-594.722 142.852 -51.2586"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "culdesac_green_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-142.783 291.472 -38.1161"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse1_f1_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-644.561 420.392 -55.875"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse1_f2_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-567.212 392.314 80.125"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse1_backyard_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-1669.56 330.02 -63.0112"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse1_backyard_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "-1059.3 838.316 -61.87"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_f1_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "744.313 257.5 -56.72"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_f1_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "843.241 612.388 -56.875"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_backyard_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "1531.81 802.012 -61.7766"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_backyard_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "1946.32 389.903 -62.781"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_backyard_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "1371.91 175.223 -58.7049"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
|
}
|
||||||
|
{
|
||||||
|
"targetname" "openhouse2_f2_zone_spawners"
|
||||||
|
"script_noteworthy" "brutus_location"
|
||||||
|
"origin" "678.909 201.955 79.125"
|
||||||
|
"classname" "script_struct"
|
||||||
|
"angles" "0 0 0"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
"script_forcespawn" "1"
|
"script_forcespawn" "1"
|
||||||
|
@ -21,15 +21,17 @@
|
|||||||
|
|
||||||
#include scripts\zm\clientfield_alt_sys;
|
#include scripts\zm\clientfield_alt_sys;
|
||||||
|
|
||||||
|
#include sys;
|
||||||
|
|
||||||
precache()
|
precache()
|
||||||
{
|
{
|
||||||
level._effect["brutus_flashlight"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_light" );
|
level._effect["brutus_flashlight"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_light" );
|
||||||
level._effect["brutus_spawn"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
level._effect["brutus_spawn"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
||||||
level._effect["brutus_death"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
level._effect["brutus_death"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
||||||
level._effect["brutus_teargas"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_gas" );
|
level._effect["brutus_teargas"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_gas" );
|
||||||
level._effect["brutus_lockdown"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_lock" );
|
level._effect["brutus_lockdown"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_lock" );
|
||||||
level._effect["brutus_lockdown_sm"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_s_lock" );
|
level._effect["brutus_lockdown_sm"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_s_lock" );
|
||||||
level._effect["brutus_lockdown_lg"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_w_bench_lock" );
|
level._effect["brutus_lockdown_lg"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_w_bench_lock" );
|
||||||
precachemodel( "c_zom_cellbreaker_helmet" );
|
precachemodel( "c_zom_cellbreaker_helmet" );
|
||||||
precacheshellshock( "mp_radiation_high" );
|
precacheshellshock( "mp_radiation_high" );
|
||||||
precacheshellshock( "mp_radiation_med" );
|
precacheshellshock( "mp_radiation_med" );
|
||||||
@ -52,13 +54,13 @@ precache()
|
|||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
precacherumble( "brutus_footsteps" );
|
precacherumble( "brutus_footsteps" );
|
||||||
level._effect["brutus_flashlight"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_light" );
|
level._effect["brutus_flashlight"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_light" );
|
||||||
level._effect["brutus_spawn"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
level._effect["brutus_spawn"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
||||||
level._effect["brutus_death"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
level._effect["brutus_death"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_spawn" );
|
||||||
level._effect["brutus_teargas"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_gas" );
|
level._effect["brutus_teargas"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_gas" );
|
||||||
level._effect["brutus_lockdown"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_lock" );
|
level._effect["brutus_lockdown"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_lock" );
|
||||||
level._effect["brutus_lockdown_sm"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_s_lock" );
|
level._effect["brutus_lockdown_sm"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_perk_s_lock" );
|
||||||
level._effect["brutus_lockdown_lg"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_w_bench_lock" );
|
level._effect["brutus_lockdown_lg"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_w_bench_lock" );
|
||||||
precachemodel( "c_zom_cellbreaker_helmet" );
|
precachemodel( "c_zom_cellbreaker_helmet" );
|
||||||
precacheshellshock( "mp_radiation_high" );
|
precacheshellshock( "mp_radiation_high" );
|
||||||
precacheshellshock( "mp_radiation_med" );
|
precacheshellshock( "mp_radiation_med" );
|
||||||
@ -1203,7 +1205,9 @@ brutus_stuck_watcher()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !findpath( self.origin, self.goal_pos, self, 0, 0 ) )
|
if ( level.script == "zm_prison" )
|
||||||
|
{
|
||||||
|
if ( !findpath( self.origin, self.goal_pos, self, true, false ) )
|
||||||
{
|
{
|
||||||
/#
|
/#
|
||||||
println( "Brutus could not path to goal_pos " + self.goal_pos );
|
println( "Brutus could not path to goal_pos " + self.goal_pos );
|
||||||
@ -1211,7 +1215,24 @@ brutus_stuck_watcher()
|
|||||||
self.fail_count++;
|
self.fail_count++;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
self.fail_count = 0;
|
self.fail_count = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ( !findpath( self.origin, self.goal_pos, self, true, false ) )
|
||||||
|
{
|
||||||
|
/#
|
||||||
|
println( "Brutus could not path to goal_pos " + self.goal_pos );
|
||||||
|
#/
|
||||||
|
self.fail_count++;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
self.fail_count = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ( self.fail_count >= level.brutus_failed_paths_to_teleport )
|
if ( self.fail_count >= level.brutus_failed_paths_to_teleport )
|
||||||
{
|
{
|
||||||
@ -2086,7 +2107,7 @@ teargas_trigger_think()
|
|||||||
|
|
||||||
precache_default_brutus_barrier_fx()
|
precache_default_brutus_barrier_fx()
|
||||||
{
|
{
|
||||||
level._effect["brutus_smash_default"] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_brk_wood" );
|
level._effect["brutus_smash_default"] = sys::loadfx( "maps/zombie_alcatraz/fx_alcatraz_brut_brk_wood" );
|
||||||
}
|
}
|
||||||
|
|
||||||
scale_helmet_damage( attacker, damage, headshot_mod, damage_mod, vdir )
|
scale_helmet_damage( attacker, damage, headshot_mod, damage_mod, vdir )
|
||||||
|
@ -263,7 +263,7 @@ dotraverse_override( traversestate, traversealias, no_powerups )
|
|||||||
perk_machine_knockdown_zombie_override( origin )
|
perk_machine_knockdown_zombie_override( origin )
|
||||||
{
|
{
|
||||||
damage = int( self.health * 0.25 );
|
damage = int( self.health * 0.25 );
|
||||||
if ( isDefined( self.animname ) && self.animname == "zombie" )
|
if ( !is_true( self.no_gib ) )
|
||||||
{
|
{
|
||||||
self.a.gib_ref = random( array( "guts", "right_arm", "left_arm" ) );
|
self.a.gib_ref = random( array( "guts", "right_arm", "left_arm" ) );
|
||||||
self thread maps\mp\animscripts\zm_death::do_gib();
|
self thread maps\mp\animscripts\zm_death::do_gib();
|
||||||
|
14
zm_ai_pack/sys.gsc
Normal file
14
zm_ai_pack/sys.gsc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
// T6 Script Builtins
|
||||||
|
/@
|
||||||
|
Adds <fx_name> as a configstring to the fx configstring pool.
|
||||||
|
Returns an index that can be used in many different functions and methods to play an fx.
|
||||||
|
The fx configstring pool is limited to 195 entries before fx configstring overflow occurs.
|
||||||
|
On Plutonium addonfx pool was added to bypass this limit so functions add to this configstring pool
|
||||||
|
have another 256 entries.
|
||||||
|
USAGE: level._effect[ effect_alias ] = loadfx( <fx_name> );
|
||||||
|
PARAMS: <string>
|
||||||
|
@/
|
||||||
|
loadfx( fx_name )
|
||||||
|
{
|
||||||
|
loadfx( fx_name );
|
||||||
|
}
|
@ -66,5 +66,7 @@ script,scripts/zm/zm_ai_pack_mod_main.gsc
|
|||||||
script,scripts/zm/clientfield_alt_sys.csc
|
script,scripts/zm/clientfield_alt_sys.csc
|
||||||
script,scripts/zm/clientfield_alt_sys.gsc
|
script,scripts/zm/clientfield_alt_sys.gsc
|
||||||
|
|
||||||
|
script,sys.gsc
|
||||||
|
|
||||||
// Map specific scripts
|
// Map specific scripts
|
||||||
script,scripts/zm/zm_prison/zm_ai_pack_mod_zm_prison_main.gsc
|
script,scripts/zm/zm_prison/zm_ai_pack_mod_zm_prison_main.gsc
|
Loading…
x
Reference in New Issue
Block a user