| 3100 | */ |
| 3101 | |
| 3102 | qboolean NPC_SetCombatPoint( int combatPointID ) |
| 3103 | { |
| 3104 | if (combatPointID==NPCInfo->combatPoint) |
| 3105 | { |
| 3106 | return qtrue; |
| 3107 | } |
| 3108 | |
| 3109 | //Free a combat point if we already have one |
| 3110 | if ( NPCInfo->combatPoint != -1 ) |
| 3111 | { |
| 3112 | NPC_FreeCombatPoint( NPCInfo->combatPoint ); |
| 3113 | } |
| 3114 | |
| 3115 | if ( NPC_ReserveCombatPoint( combatPointID ) == qfalse ) |
| 3116 | return qfalse; |
| 3117 | |
| 3118 | NPCInfo->combatPoint = combatPointID; |
| 3119 | |
| 3120 | return qtrue; |
| 3121 | } |
| 3122 | |
| 3123 | extern qboolean CheckItemCanBePickedUpByNPC( gentity_t *item, gentity_t *pickerupper ); |
| 3124 | gentity_t *NPC_SearchForWeapons( void ) |
no test coverage detected