
pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:30 PM
Msg. 1 of 28
Like the title says i was wondering that if you press a certain button you could switch from one person to another like in conflict desert storm? because i am thinking on making a single player level with four different spec op elites
|
|
|

ThePlague
Joined: Dec 16, 2007
Steam: jubalearlybh
|
Posted: Aug 27, 2008 09:31 PM
Msg. 2 of 28
No, you would have to bump possess them. That or use sightjacker, but it only works with other players. And you can't control them.
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: Aug 27, 2008 09:32 PM
Msg. 3 of 28
scripting for SP?
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:33 PM
Msg. 4 of 28
darn, oh well i thought it was possible
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 27, 2008 09:34 PM
Msg. 5 of 28
you could make a script so when you press the flashlight you bump posses the next elite and so on till you get back to the original, also you could add an AI to your player so while you are another elite, the other one doesnt just stand there....its a good idea, i like it
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:37 PM
Msg. 6 of 28
well i was wondering if that was possible in HCE
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 27, 2008 09:38 PM
Msg. 7 of 28
Quote: --- Original message by: pwner5889 well i was wondering if that was possible in HCE uh yeah it is, i just said how
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:41 PM
Msg. 8 of 28
Quote: --- Original message by: _TheArbiter_Quote: --- Original message by: pwner5889 well i was wondering if that was possible in HCE uh yeah it is, i just said how lol ok thanks
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: Aug 27, 2008 09:43 PM
Msg. 9 of 28
Quote: --- Original message by: _TheArbiter_ you could make a script so when you press the flashlight you bump posses the next elite and so on till you get back to the original, also you could add an AI to your player so while you are another elite, the other one doesnt just stand there....its a good idea, i like it i thought its called Bump Possess? dont u have to bump them first?
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:48 PM
Msg. 10 of 28
Quote: --- Original message by: AdvanceboQuote: --- Original message by: _TheArbiter_ you could make a script so when you press the flashlight you bump posses the next elite and so on till you get back to the original, also you could add an AI to your player so while you are another elite, the other one doesnt just stand there....its a good idea, i like it i thought its called Bump Possess? dont u have to bump them first? no because if i use bump posess then what will control the last person i was playing as? he would just stand there doing nothing and that wont help because in certain points in the level there is going to be a character switch and thats all im saying about this until i can get some voice actors and just about everything else you would need to make a good single player level
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 27, 2008 09:52 PM
Msg. 11 of 28
Quote: --- Original message by: AdvanceboQuote: --- Original message by: _TheArbiter_ you could make a script so when you press the flashlight you bump posses the next elite and so on till you get back to the original, also you could add an AI to your player so while you are another elite, the other one doesnt just stand there....its a good idea, i like it i thought its called Bump Possess? dont u have to bump them first? uh yeah i think you got me there, i would need to check.....i think there was a command or something, if not ill make it somehow
|
|
|

AHS_SONIC
Joined: Dec 9, 2006
mmm toasty
|
Posted: Aug 27, 2008 09:53 PM
Msg. 12 of 28
Quote: until i can get some voice actors mmm not tooting my own horn or anything but the checkers voice in the beginning? that was me hehe
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 09:55 PM
Msg. 13 of 28
Quote: --- Original message by: AHS_SONICQuote: until i can get some voice actors mmm not tooting my own horn or anything but the checkers voice in the beginning? that was me hehe lmao ok?
|
|
|

ThePlague
Joined: Dec 16, 2007
Steam: jubalearlybh
|
Posted: Aug 27, 2008 10:07 PM
Msg. 14 of 28
If your talking about when you possess an AI, then you go to another AI, that AI will move again. But when you leave your own body, I don't think it will move. Unless you make a script that makes your body turn into an AI. Also, I think when you possess an AI, and then leave their body, the command points and stuff go away and it will move randomly.
I'm not a scrpiter, so idk really.
And about the dev command, its cheat_bump possession 1 for on and 0 for off.
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 27, 2008 10:11 PM
Msg. 15 of 28
Quote: --- Original message by: H4Z4RD If your talking about when you possess an AI, then you go to another AI, that AI will move again. But when you leave your own body, I don't think it will move. Unless you make a script that makes your body turn into an AI. Also, I think when you possess an AI, and then leave their body, the command points and stuff go away and it will move randomly.
I'm not a scrpiter, so idk really.
And about the dev command, its cheat_bump possession 1 for on and 0 for off. somehow that command isnt in the hs doc
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 10:12 PM
Msg. 16 of 28
yes thats what i meant can you do anyone do it? im not a scripter so i cant really do anything
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 27, 2008 10:14 PM
Msg. 17 of 28
Quote: --- Original message by: pwner5889 yes thats what i meant can you do anyone do it? im not a scripter so i cant really do anything ill try to do it...when i get spare time tho, cuze right now im modeling stuff for my team
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 27, 2008 10:15 PM
Msg. 18 of 28
Quote: --- Original message by: _TheArbiter_Quote: --- Original message by: pwner5889 yes thats what i meant can you do anyone do it? im not a scripter so i cant really do anything ill try to do it...when i get spare time tho, cuze right now im modeling stuff for my team ok thank you i will obviously give you credit for the script thanks
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Aug 27, 2008 11:15 PM
Msg. 19 of 28
No. It is not possible unless you directly bump into another biped while bump possession is turned on. There is no other way to switch control by scripting. For the record, it's
"cheat_bump_possession "
boolean meaning true or false (1 or 0).
It could be done though. I would recommend tying the bump possession to the flashlight by scripting. You can attach an AI to a player so that the player biped isn't just dead still when not in control by using "ai_attach (unit (list_get (players) #)) <ai>". Edited by Me KS on Aug 27, 2008 at 11:15 PM
|
|
|

Advancebo
Joined: Jan 14, 2008
|
Posted: Aug 28, 2008 06:44 AM
Msg. 20 of 28
if u press the flashlight to turn on bump possession, wouldnt that just switch between 0 and 1? also there is the problem of the player possessing other AI, including those not on the same side. or those that shouldnt be able to play as
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 28, 2008 09:31 AM
Msg. 21 of 28
Quote: --- Original message by: Advancebo if u press the flashlight to turn on bump possession, wouldnt that just switch between 0 and 1? also there is the problem of the player possessing other AI, including those not on the same side. or those that shouldnt be able to play as no i only want to switch between four elites and that's it noone else Edited by pwner5889 on Aug 28, 2008 at 09:31 AM
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Aug 28, 2008 11:49 AM
Msg. 22 of 28
Quote: --- Original message by: pwner5889 no i only want to switch between four elites and that's it noone else Edited by pwner5889 on Aug 28, 2008 at 09:31 AM Well then you're not going to be able to. There's no way to tell which biped the player is controlling, and there's no way to only enable bump possession for certain bipeds. And Advancebo, yes it only switches it on, but once it's on you can bump into who you want to control and then turn it off again just with the flashlight. There's no other way to switch player control.
|
|
|

_TheArbiter_
Joined: Apr 22, 2007
"stupidity is an epidemic " - Donut
|
Posted: Aug 28, 2008 12:32 PM
Msg. 23 of 28
Quote: --- Original message by: Me KSQuote: --- Original message by: pwner5889 no i only want to switch between four elites and that's it noone else Edited by pwner5889 on Aug 28, 2008 at 09:31 AM Well then you're not going to be able to. There's no way to tell which biped the player is controlling, and there's no way to only enable bump possession for certain bipeds. And Advancebo, yes it only switches it on, but once it's on you can bump into who you want to control and then turn it off again just with the flashlight. There's no other way to switch player control. unless you teleport the AI you want via triggers or something so he bumps you and you posses it, then somehow teleport back its pretty much a sketch idea, i would like to try mixing some commands to see if i can make it
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Aug 28, 2008 10:32 PM
Msg. 24 of 28
Quote: --- Original message by: _TheArbiter_ unless you teleport the AI you want via triggers or something so he bumps you and you posses it, then somehow teleport back
its pretty much a sketch idea, i would like to try mixing some commands to see if i can make it Good idea, I never thought of that. For teleporting back, a simple solution is an invisible scenery object that is attached to each biped that you want to control, each with a different name. When you want to control one of the bipeds, that object is detached from the biped, and then after that the biped is attached and detached from the player with bump possession temporarily turned on to possess him. After this, the newly-possessed biped is attached and detached from the invisible scenery to bring the player to the location that the biped was in, and then the scenery is re-attached to the biped once that is done. But, the possession might not work right because detaching a biped from the player doesn't guarantee that it will be possessed, even though there's a good chance. Although, I have a pretty good idea for biped selection: have a separate room in the BSP, and in that room, place four control panels. When the player hits the flashlight button, no matter where he is, he'll be teleported to that room. Once in the room, he can hit the flashlight again to exit at any time. Otherwise, all he needs to do is go up to the proper control panel (which can easily be done with strings: "Press "E" to control Sergeant Johnson" for example) and press it, and then the above actions are done to make him possess the right biped.
|
|
|

kai5888
Joined: Jun 29, 2008
Start the revolution
|
Posted: Aug 28, 2008 10:34 PM
Msg. 25 of 28
that panel idea sounds awesome... yet funny............
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 30, 2008 09:24 PM
Msg. 26 of 28
Quote: --- Original message by: Me KS
its pretty much a sketch idea, i would like to try mixing some commands to see if i can make it Although, I have a pretty good idea for biped selection: have a separate room in the BSP, and in that room, place four control panels. When the player hits the flashlight button, no matter where he is, he'll be teleported to that room. Once in the room, he can hit the flashlight again to exit at any time. Otherwise, all he needs to do is go up to the proper control panel (which can easily be done with strings: "Press "E" to control Sergeant Johnson" for example) and press it, and then the above actions are done to make him possess the right biped.
well thats not exactly what i had in mind though i just wanted it so you can press the flashlight button and you switch to another biped
|
|
|

Me KS
Joined: Feb 2, 2008
Desire is Reality. Xfire: jetmaster23
|
Posted: Aug 30, 2008 11:08 PM
Msg. 27 of 28
Quote: --- Original message by: pwner5889 well thats not exactly what i had in mind though i just wanted it so you can press the flashlight button and you switch to another biped Well, unless you don't mind switching bipeds randomly or in linear succession every time you hit the flashlight, then there won't be a way for you to "pick" the biped you want using just the flashlight.
|
|
|

pwner5889
Joined: Jun 13, 2008
|
Posted: Aug 30, 2008 11:17 PM
Msg. 28 of 28
Quote: --- Original message by: Me KSQuote: --- Original message by: pwner5889 well thats not exactly what i had in mind though i just wanted it so you can press the flashlight button and you switch to another biped Well, unless you don't mind switching bipeds randomly or in linear succession every time you hit the flashlight, then there won't be a way for you to "pick" the biped you want using just the flashlight. well i dont really mind if it is random as long as i can switch between four bipeds
|
|
|