lfnetwork.com mark read register faq members calendar

Thread: ICARUS painscript
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 09-04-2004, 05:37 PM   #1
JavaGuy
 
JavaGuy's Avatar
 
Join Date: Aug 2002
Posts: 141
ICARUS painscript

I'm still refining my idea to have a reborn-ish NPC throw stuff at the player, but the NPC itself still ignores the script's directives. I decided to make it part of the NPCs painscript, so it runs when the NPC gets hit.

What's interesting to me is that everything in the script except the stuff that tells the NPC to do something works fine. The func_breakable that gets used, breaks. The func_static that gets moved and rotated, moves and rotates. The explosion fx entity that gets used at the end is quite spectacular. So the NPC is most definitely running his painscript when he gets hit, but he doesn't do any of the SET_DYAW things in the script.

I have also tried with SET_VIEWTARGET. It ignores those too. I also had a SET_NAVGOAL. Ignored. I tried throwing in a SET_BEHAVIORSTATE to BS_CINEMATIC. No luck.

Anyway, here's my painscript:



task ("look1" )
{
set ( "SET_IGNOREENEMIES", "true" );
set ( "SET_DYAW", 90 );
}
task ( "look2" )
{
set ( "SET_DYAW", 270 );

}
dowait ( "look1" );
do ( "look2" );

rem ( "Break the func_breakable.");
use ( "forcethrow1breakable" );

rem ( "Now throw the func_static object!");
affect ( "forcethrow1static", /*@AFFECT_TYPE*/ FLUSH )
{
move ( $tag( "forcethrow1reftag",ORIGIN)$, 750 );
rotate ( < 275.000 133.000 335.000 >, 750 );
}

affect ( "kyle" )
{
sound ( CHAN_AUTO, "sound/effects/vacuum" );
}

sound ( CHAN_AMBIENT, "sound/effects/grate_destroy" );

use ( "forcethrow1explosion" );

affect ( "forcethrow1static", /*@AFFECT_TYPE*/ FLUSH )
{
set ( "SET_INVISIBLE", "true");
set ( "SET_SOLID", "false" );
}

set ( "SET_IGNOREENEMIES", "false" );
JavaGuy is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Mapping > ICARUS painscript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:50 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.