mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-11-02 19:07:09 +00:00
Bring back support for re-t4sp.
This commit is contained in:
@@ -44,8 +44,9 @@ Finder( eObj )
|
||||
|
||||
if ( !player_has_weapon || is_grenade )
|
||||
{
|
||||
func = BotBuiltinGetFunction( "maps/_zombiemode_weapons", "get_weapon_cost" );
|
||||
|
||||
//func = BotBuiltinGetFunction( "maps/_zombiemode_weapons", "get_weapon_cost" );
|
||||
func = ::get_weapon_cost;
|
||||
|
||||
if ( self.score < [[ func ]]( weapon_spawns[ i ].zombie_weapon_upgrade ) )
|
||||
{
|
||||
continue;
|
||||
@@ -53,7 +54,8 @@ Finder( eObj )
|
||||
}
|
||||
else
|
||||
{
|
||||
func = BotBuiltinGetFunction( "maps/_zombiemode_weapons", "get_ammo_cost" );
|
||||
//func = BotBuiltinGetFunction( "maps/_zombiemode_weapons", "get_ammo_cost" );
|
||||
func = ::get_ammo_cost;
|
||||
|
||||
if ( self.score < [[ func ]]( weapon_spawns[ i ].zombie_weapon_upgrade ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user