PDA

View Full Version : I don't want to start any trouble.....yet...


Blue_Lightsaber
02-24-2003, 06:25 PM
How do I make my level that you can't take out any weapons? Like in nar shadda streets at the begining. Thanks in advance.

Dragarius
02-25-2003, 04:44 AM
SP map?

Try setting the noweapon flag on your info_player_start entity.

Livingdeadjedi
02-25-2003, 01:34 PM
HEHEHE :D

Blue_Lightsaber
02-25-2003, 05:43 PM
Drag I know about that. I just want to know how to make kyle say I don't want start any trouble.....yet.

Dragarius
02-25-2003, 07:07 PM
That was almost certainly done with scripting. But I do not know the specific mechanics of it.

master_thomas
02-25-2003, 08:30 PM
I guess the script runners were targeted by a target_random that was target by a trigger_multiple that was triggered by the fire key in that area that was deactivated at the cutscene. You'll have to try that and maybe look in SP scripts.

yangyan
02-27-2003, 04:18 AM
Originally posted by Dragarius
SP map?

Try setting the noweapon flag on your info_player_start entity.

Lol tht won't work

BehavEd is what u need

affect kyle and I'm no scripting guy so i think it is set set_dontfire true but do that in behaved.

Dragarius
02-27-2003, 07:14 AM
First, the noweapon flag on the info_player_start entity does make Kyle spawn with no weapon. :D

Second, SET_DONTFIRE is specified in the ICARUS manual as NPC-Only. This means it will not work for Kyle. The manual also does not specify that weapons are not drawn with SET_DONTFIRE only that they are not fired. :rolleyes:

What is needed, in the end, is for Kyle to have no weapon in hand and for any attempt to draw a weapon to produce one of the comments as in ns_streets.

The script which uses the .mp3 file "I don't want to start any trouble" is ns_streets/force-weapons1.txt. The .mp3 files are used with the tasks for_precaching1, 2, and 3.

I am not a behaved expert in any sense. I looked for any other reference to those .mp3 files or for_precaching# and could find nothing in the other scripts for that level. The for_precaching# tasks are never done in any script.

This leads me to believe that the terms for_precaching# may be a built-in function for the game. (Just a guess based solely on my not finding the do command for them)

The same script does however affect Kyle with the following:

set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_SABER" );
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
set ( /*@SET_TYPES*/ "SET_LOCK_PLAYER_WEAPONS", /*@BOOL_TYPES*/ "true" );

This appears to give him no weapon in hand (line 2) and lock him with no weapon (line 3). I do not know why they give him the saber first... :confused:

In conclusion (much-speculation-here-as-this-would-take-a-lot-of-time-I-don't-have-right-now-to-personally-test): Affect Kyle as in the lines above to set him with no weapon and no ability to draw one. Set the audio comments from Kyle as in ns_streets/force-weapons_ns1.txt and hope :) that the use of comments happens when he tries to pull a weapon.

Best I can do on short notice. :D

Dea
02-27-2003, 08:40 AM
Originally posted by Dragarius
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_SABER" );
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
set ( /*@SET_TYPES*/ "SET_LOCK_PLAYER_WEAPONS", /*@BOOL_TYPES*/ "true" );

This appears to give him no weapon in hand (line 2) and lock him with no weapon (line 3). I do not know why they give him the saber first... :confused:

It's actually fairly simple, they give him the saber first to make sure that kyle has the saber in his inventory, then they give him the non weapon (wich is selectable with the - key) so that kyle does not have any weapons drawn. Finally, they lock the weapons to disallow the player to switch from the none weapon. All the above is to precashe the sound, to prevent the game from starting to load as soon as the player tries to swich weapons.

I've not been able to find a similar setting for force powers, so I assume the lock weapons will also lock those, however if this is not the case you might have to set all force powers to zero temoratily to prevent them from being used.

Good luck

yangyan
03-01-2003, 01:27 AM
Originally posted by Dragarius
First, the noweapon flag on the info_player_start entity does make Kyle spawn with no weapon. :D

Second, SET_DONTFIRE is specified in the ICARUS manual as NPC-Only. This means it will not work for Kyle. The manual also does not specify that weapons are not drawn with SET_DONTFIRE only that they are not fired. :rolleyes:

What is needed, in the end, is for Kyle to have no weapon in hand and for any attempt to draw a weapon to produce one of the comments as in ns_streets.

The script which uses the .mp3 file "I don't want to start any trouble" is ns_streets/force-weapons1.txt. The .mp3 files are used with the tasks for_precaching1, 2, and 3.

I am not a behaved expert in any sense. I looked for any other reference to those .mp3 files or for_precaching# and could find nothing in the other scripts for that level. The for_precaching# tasks are never done in any script.

This leads me to believe that the terms for_precaching# may be a built-in function for the game. (Just a guess based solely on my not finding the do command for them)

The same script does however affect Kyle with the following:

set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_SABER" );
set ( /*@SET_TYPES*/ "SET_WEAPON", /*@WEAPON_NAMES*/ "WP_NONE" );
set ( /*@SET_TYPES*/ "SET_LOCK_PLAYER_WEAPONS", /*@BOOL_TYPES*/ "true" );

This appears to give him no weapon in hand (line 2) and lock him with no weapon (line 3). I do not know why they give him the saber first... :confused:

In conclusion (much-speculation-here-as-this-would-take-a-lot-of-time-I-don't-have-right-now-to-personally-test): Affect Kyle as in the lines above to set him with no weapon and no ability to draw one. Set the audio comments from Kyle as in ns_streets/force-weapons_ns1.txt and hope :) that the use of comments happens when he tries to pull a weapon.

Best I can do on short notice. :D



Ahem. I told you i was no Scripter OK?

yangyan
03-01-2003, 01:30 AM
Or you could spawn a weapon a soon as kyle steps on a trigger_once which spawns a weapon beneath him but that won't do good...