Jump to content

Home

I don't want to start any trouble.....yet...


Blue_Lightsaber

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...