Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → Has anyone figured this out yet?
Has anyone figured this out yet?
2002-08-17, 7:47 PM #1
How do you make an Imperial/enemy start already sitting inside the emplaced_gun so they attack you when you come within range. I'm assuming it's a script....I had an idea you may to give them a spawn origin of the coordinates of the emplaced_gun...can someone confirm or deny this...haven't had a chance to test it yet. Or can you just tell me a way if you've already figured it out.
2002-08-18, 10:10 AM #2
I've been wondering the same thing . . . I'm not at that stage yet, but I want to have stormtroopers using emplaced guns in my map.

There's a point somewhere in the Cairn levels, where an Imperial is using an emplaced gun to blast you. Then after you knock him off, you take over. So you might want to search the scripts to the Cairn levels for clues.

I understand why Raven didn't release all their source map files (because people would rip them off), but it's times like this I wish they had, so we can study how they implemented a feature.

EDIT: I found a script that may offer some clues.

Quote:
<font face="Verdana, Arial" size="2">//Generated by BehavEd

rem ( "comment" );
set ( /*@SET_TYPES*/ "SET_CHASE_ENEMIES", /*@BOOL_TYPES*/ "false" );
use ( "empgun" );
set ( /*@SET_TYPES*/ "SET_BEHAVIOR_STATE", /*@BSTATE_STRINGS*/ "BS_CINEMATIC" );
set ( /*@SET_TYPES*/ "SET_WATCHTARGET", "emplaced_aim" );
set ( /*@SET_TYPES*/ "SET_FIRE_WEAPON", /*@BOOL_TYPES*/ "true" );</font>


This script is actually used in the bespin_streets level. It appears to make a Weequay use an emplaced gun. It's called weequay_emplaced.txt.

From what I can tell, you spawn the NPC next to the gun, get the NPC to use the gun, and then set its view to the same as the gun's? Finally, you tell it to start firing.

Don't know if this is exactly how it works. Maybe someone else has already figured this out. If not, let me know how you make out! Eventually I'm going to run into this same problem.

[This message has been edited by rwr (edited August 18, 2002).]
"Windows is a 32-bit patch for a 16-bit GUI shell running on top of an eight-bit operating system written for a four-bit processor by a two-bit company that can't stand one bit of competition."
2002-08-18, 9:01 PM #3
YES!

I tested out the method I deduced, to have a Stormtrooper use an emplaced gun, and it worked!

Here are the screenshots of the simple test map I made, showing the Stormtrooper using the gun.

[http://www.massassi.net/ec/images/6486.jpg]

[http://www.massassi.net/ec/images/6487.jpg]

You have to remove the BS_CINEMATIC line, if you want the Stormtooper to keep aiming at you, as you move. Otherwise, he'll just shoot in the same direction all the time.
"Windows is a 32-bit patch for a 16-bit GUI shell running on top of an eight-bit operating system written for a four-bit processor by a two-bit company that can't stand one bit of competition."
2002-08-19, 7:59 AM #4
i think that bs_cinematic line was used for the weequay, cuz he wasnt just shooting at the player. in fact, usually when i play the game he doesnt even look at me
Shaving is not a high priority with Jedi.
Would you want to shave with a lightsaber?

I don't like quake, never liked quake, and don't like Star Wars quake. So basically jk2mp.exe never gets used on my computer.

↑ Up to the top!