Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Jailbreak.JBInventoryJail


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
// ============================================================================
// JBInventoryJail
// Copyright 2002 by Mychaeel <mychaeel@planetjailbreak.com>
// $Id: JBInventoryJail.uc,v 1.2 2004/02/16 17:17:02 mychaeel Exp $
//
// Inventory item temporarily given to bots in jail to make them prefer a
// specific weapon over all others during a jail fight.
// ============================================================================


class JBInventoryJail extends Inventory
  notplaceable;


// ============================================================================
// Variables
// ============================================================================

var Weapon WeaponRecommended;  // temporarily preferred weapon


// ============================================================================
// RecommendWeapon
//
// Tells the bot to prefer the specified weapon over all others.
// ============================================================================

simulated function Weapon RecommendWeapon(out float RatingWeapon)
{
  if (WeaponRecommended == None)
    return Super.RecommendWeapon(RatingWeapon);

  RatingWeapon = 10.0;  // very high
  return WeaponRecommended;
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mo 16.2.2004 18:17:02.000 - Creation time: Do 14.8.2014 09:58:42.704 - Created with UnCodeX