A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE General Discussion »Lowering weapon script?

Author Topic: Lowering weapon script? (23 messages, Page 1 of 1)
Moderators: Dennis

Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 29, 2010 12:22 AM    Msg. 1 of 23       
Is there anyway to make a lower weapon script without having to switch to pistol or needler and look straight down?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Aug 29, 2010 12:58 AM    Msg. 2 of 23       
Yes, but it requires a new animations file in addition to the script.


Dennis

Joined: Jan 27, 2005

"We are made of starstuff.” ― Carl Sagan


Posted: Aug 29, 2010 01:06 AM    Msg. 3 of 23       
unit_set_seat {biped name} {command}

The command is "alert", the biped name is the one assigned in sapien or else you can use the list_get object to obtain the player. Example: (list_get (players) 0)

unit_set_seat {biped name} alert

or

unit_set_seat (list_get (players) 0) alert


Edited by Dennis on Aug 29, 2010 at 01:07 AM


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 30, 2010 10:10 PM    Msg. 4 of 23       
ok thnx. just a question before I do this: Is this the stance marines would do if there are nothing around? take extinction AI for example


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Aug 30, 2010 10:12 PM    Msg. 5 of 23       
Marines use alert, yes, but spartans have no alert stance, as they were meant to be playable characters.


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 30, 2010 10:36 PM    Msg. 6 of 23       
ohh, I see. But spartans can still do it right? but it just looks weird I am assuming


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 30, 2010 10:40 PM    Msg. 7 of 23       
lol k thnx guys :)


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Aug 30, 2010 11:37 PM    Msg. 8 of 23       
Spartan's aren't provided that animation by default.


Dennis

Joined: Jan 27, 2005

"We are made of starstuff.” ― Carl Sagan


Posted: Aug 30, 2010 11:46 PM    Msg. 9 of 23       
Quote: --- Original message by: Skyancez3o4
ohh, I see. But spartans can still do it right? but it just looks weird I am assuming
No the Spartan bipeds will not lower the weapon but will walk when in alert. Marines will lower the weapon and walk because they have an animation for it.


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 01:06 AM    Msg. 10 of 23       
oh ok. thnx

Edit: ok umm, can this be done in game? I tried the command but it doesnt really work. Perhaps I was playing on a map on a Lan Server in the map of: Modded DeathIsland me beta found in the machinima maps section. I typed in the command and nothing happens. Any help?
Edited by Skyancez3o4 on Aug 31, 2010 at 01:47 AM


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 02:17 PM    Msg. 11 of 23       
mhmm, which is exactly what Im doing. *sigh* this can be done in game right? because right off the bat, list_get objects doesn't work. :(


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Aug 31, 2010 02:41 PM    Msg. 12 of 23       
Quote: --- Original message by: Skyancez3o4
mhmm, which is exactly what Im doing. *sigh* this can be done in game right? because right off the bat, list_get objects doesn't work. :(
Seriously? In a script, where you need a UNIT, put in (list_get (players) 0).
Basically you need animations AND the script.
Edited by SlappyThePirate on Aug 31, 2010 at 02:53 PM


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 02:49 PM    Msg. 13 of 23       
wait so in the commands, I need the brackets now? so it should look like
*Halo Command Line* (list_get(players)0) ?
because I typed that into the command bar and nothing shows up. Im starting to think this cant be done in-game


Advancebo
Joined: Jan 14, 2008


Posted: Aug 31, 2010 02:52 PM    Msg. 14 of 23       
Quote: --- Original message by: Zira Vadum
Quote: --- Original message by: Skyancez3o4
ohh, I see. But spartans can still do it right? but it just looks weird I am assuming


hm? If you rig it right I think you can achieve:


not rigged correctly, just animated correctly.


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Aug 31, 2010 02:54 PM    Msg. 15 of 23       
Um, it should llok like exactly what dennis said.
You need animations.
Then, in Halo devmode, type
unit_set_seat (list_get (players) 0) alert
EDIT: And probably
debug_camera save
debug_camera_load
Edited by SlappyThePirate on Aug 31, 2010 at 02:55 PM


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 03:00 PM    Msg. 16 of 23       
mhmm, I typed that in game while in third person but it didnt work. Does this work in maps with AI in it?


Gamma927
Joined: Jun 12, 2008

Steam: gamma927


Posted: Aug 31, 2010 04:54 PM    Msg. 17 of 23       
That won't lower your weapon, because the player, by default, lacks animations for lowering the animation. It will, however, work in non-spartan bipeds.


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 05:09 PM    Msg. 18 of 23       
yes I understand that any spartan biped/player wont go into alert mode but marine bipeds/players can right? Im simply asking will this work in-game because I have tried 2 times and it havent worked.


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Aug 31, 2010 07:44 PM    Msg. 19 of 23       
Quote: --- Original message by: Skyancez3o4
yes I understand that any spartan biped/player wont go into alert mode but marine bipeds/players can right? Im simply asking will this work in-game because I have tried 2 times and it havent worked.
You need anims for the spartan. If you play as a marine, it should work, right?


Dennis

Joined: Jan 27, 2005

"We are made of starstuff.” ― Carl Sagan


Posted: Aug 31, 2010 07:48 PM    Msg. 20 of 23       
Quote: --- Original message by: Skyancez3o4
Im simply asking will this work in-game because I have tried 2 times and it havent worked.
Yes it does work in dev-mode.

If you wish to set the player to alert then you need to use this command.

unit_set_seat (unit (list_get (players) 0)) alert.

If the player is a Spartan then you will not notice anything until you try to move. As long as you are carrying an AR you will walk instead of run.

I don't believe that the list_get(players) command will work if you bump possess a biped since the game loses track of the player. So if you want to possess a dormant biped you would need to know the biped's name and use the command:

unit_set_seat {name} alert


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 08:09 PM    Msg. 21 of 23       
ahh I see. but what of the list get command? I tried list_get objects and nothing shows up. it says list_get and I have no idea what that means


SlappyThePirate
Joined: Aug 24, 2009

You are irritating, I'll release nothing


Posted: Aug 31, 2010 08:19 PM    Msg. 22 of 23       
Quote: --- Original message by: Skyancez3o4
ahh I see. but what of the list get command? I tried list_get objects and nothing shows up. it says list_get and I have no idea what that means
List get returns stuff. The command is asking for a unit, so you have to tell it that. When you subtitute things, you put them in brackets.
There is a global list called players, which is all the netgame player, 0-15.
(list_get (players) 0)
replaces

Which could also be a biped's name.
list_get and 0 specify the unit as 0 from the list. Which is players.
(list_get (players) 0) returns (represents) "you".
If you just use a biped named "dude", you type dude instead of (list_get (players) 0).
But the biped dude does not walk, so use yourself.


Skyancez3o4
Joined: Apr 6, 2010

I miss CE


Posted: Aug 31, 2010 08:23 PM    Msg. 23 of 23       
ok thnx, I'll try this later, no time right now. :)

 

 
Previous Older Thread    Next newer Thread







Time: Fri January 20, 2023 1:01 PM 391 ms.
A Halo Maps Website