Jump to content

Quick Small Icarus & NPC Script


Recommended Posts

Referenced Topic: http://jkhub.org/topic/6285-making-a-static-unarmed-npc/

 

I'm a mapper and I am working on a project. I've been trying to make an unarmed NPC that has infinite health, is unarmed, doesn't move, and doesn't fight back even when attacked. I asked in the referenced thread above, and apparently I need to script some stuff with something called Icarus

 

 

also with icarus add SET_BEHAVOUR_STATE, BS_CINEMATIC. this disable his AI. :)

SET_IGNOREENEMIES avoid he go to anger or flee when see the player or enemies, and SET_IGNOREPAIN avoid pain animations.

you can also yse SET_EARSHOT and SET_VISRANGE for change the range of his sight and earshot. :)

 

You can set SET_INVINCIBLE to True using Icarus to make him truly invincible.

 

This is sort of what I have so far. The model name is jawahat

 

jawahat
{
    fullName        "jawahat"
    playerModel        jawahat
    scale            70
    playerTeam        TEAM_PLAYER
    enemyTeam        TEAM_PLAYER
    class            CLASS_GLIDER
    health            9999
    weapon WP_NONE
    movetype        static
}
 

 

I really don't know scripting, but I assume something like this can be whipped up pretty quickly. If possible include an alternate npc that has 99999 health. I'd be very greatful for this and perhaps I can do something in return in favor.

Edited by mrwonko
Put NPC source into code tags
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...