Jump to content

Home

NPC Question


Blaster

Recommended Posts

don´t know if this helps, but I did a little research on this and found this:

 

from yavin_final.bsp:

"classname" "NPC_Desann"

"angle" "270"

"NPC_targetname" "real_desann"

"targetname" "real_desann"

"origin" "-4776 4548 -1544"

"spawnscript" "yavin_final/setupdesann"

"NPC_target" "run_cin35_spawner"

}

 

 

in setupdesann.ibi you will find the line

set ( /*@SET_TYPES*/ "SET_PAINSCRIPT", "yavin_final/desann_hurt" );

 

 

wich leads to desann_hurt.ibi:

rem ( "comment" );

 

if ( $get( FLOAT, "SET_HEALTH") < 200$ )

{

set ( /*@SET_TYPES*/ "SET_PAINSCRIPT", "NULL" );

set ( /*@SET_TYPES*/ "SET_MUSIC_STATE", /*@MUSIC_STATES*/ "DM_BOSS" );

}

 

 

This means: If Desanns health goes below 200 points the DM_BOSS music will be played. Should be easy for you now to replace a few lines ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...