
Solocord
Joined: May 30, 2008
im what happens when you play with fire.
|
Posted: Sep 4, 2008 03:34 AM
Msg. 1 of 7
i would like to request a script where you press a button like shift or something and you drop your weapon and it changes to another weapon for this case the unarmed cheif weapon tags from hce.halomaps.org is this possible? because id like to have a script like it also id like to get dennis' opinion on if its possible.
|

Advancebo
Joined: Jan 14, 2008
|
Posted: Sep 4, 2008 07:06 AM
Msg. 2 of 7
shift isnt a button in halo. all u have to do is place the bare hand tag as a starting weapon.
|

Solocord
Joined: May 30, 2008
im what happens when you play with fire.
|
Posted: Sep 6, 2008 12:55 AM
Msg. 3 of 7
read the full post please bo i was using shift as an example i was going to use this for a sp map so it could have been "T" as the button i have another script to request where you press the button "Y" to teleport to the last checkpoint.
|

AHS_SONIC
Joined: Dec 9, 2006
mmm toasty
|
Posted: Sep 6, 2008 01:47 AM
Msg. 4 of 7
you need to study up on scripts the only real programable button in halo is the flashlight button, and i dont think either of the functions you requested are even possible in the first place.
|

Donut
Joined: Sep 30, 2006
I swear I'm not actually dead
|
Posted: Sep 6, 2008 09:51 PM
Msg. 5 of 7
there are also alot of functions to check if other buttons were pressed too
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Sep 6, 2008 10:12 PM
Msg. 7 of 7
Here are the commands Donut's talking about:
(player_action_test_reset)
resets the player action test state so that all tests will return false.
(player_action_test_jump)
returns true if any player has jumped since the last call to (player_action_test_reset).
(player_action_test_primary_trigger)
returns true if any player has used primary trigger since the last call to (player_action_test_reset).
(player_action_test_grenade_trigger)
returns true if any player has used grenade trigger since the last call to (player_action_test_reset).
(player_action_test_zoom)
returns true if any player has hit the zoom button since the last call to (player_action_test_reset).
(player_action_test_action)
returns true if any player has hit the action key since the last call to (player_action_test_reset).
(player_action_test_accept)
returns true if any player has hit accept since the last call to (player_action_test_reset).
(player_action_test_back)
returns true if any player has hit the back key since the last call to (player_action_test_reset).
(player_action_test_look_relative_up)
returns true if any player has looked up since the last call to (player_action_test_reset).
(player_action_test_look_relative_down)
returns true if any player has looked down since the last call to (player_action_test_reset).
(player_action_test_look_relative_left)
returns true if any player has looked left since the last call to (player_action_test_reset).
(player_action_test_look_relative_right)
returns true if any player has looked right since the last call to (player_action_test_reset).
(player_action_test_look_relative_all_directions)
returns true if any player has looked up, down, left, and right since the last call to (player_action_test_reset).
(player_action_test_move_relative_all_directions)
returns true if any player has moved forward, backward, left, and right since the last call to (player_action_test_reset).
They're useful, but they test for all players' actions, so these are nearly useless in multiplayer maps. But, I'm assuming this is a script for a single player map, and these would be very useful in that case. Shift won't be an option, but there are commands for "accept" and "back", which are by default "Enter", and "Backspace" or "Esc" I think, so you could try those.
This command here can be used to change the weapons that the player is holding:
(player_add_equipment <unit> <starting_profile> <boolean>)
adds/resets the player's health, shield, and inventory (weapons and grenades) to the named profile. resets if third parameter is true, adds if false.
The <starting_profile> is the name of a "Player Starting Profile" that you create in the Scenario tag. Edited by Me KS on Sep 6, 2008 at 10:13 PM
|