Change player model
Quote from Tank420 on June 13, 2012, 3:40 amok so i'm trying this right now, and i don't see an issue with the angle of the portal gun.
if there is tho, would this not fix it
viewmodel_offset_y 0.0
viewmodel_offset_z 0.0
viewmodel_offset_x 0.0EDIT
Ok so i think i see what the problem is, the portal gun is being held not at the wrong angle, but the wrong height, i.e. it starts at chell's height and doesn't change for ballbot, eggbot holds it about the same height anyway. Can't find bendy to prechace(although i guess you wouldn't need to prechache him on the community maps, cos he's the default) or set model as, but didn't really want him anyway, but i assume when the map is uploaded, the gun would start at bendy's height, and would only really match ballbot's height. I guess.also
Tank420 wrote:viewmodel_offset_y 0.0
viewmodel_offset_z 0.0
viewmodel_offset_x 0.0doesn't help
ok so i'm trying this right now, and i don't see an issue with the angle of the portal gun.
if there is tho, would this not fix it
viewmodel_offset_y 0.0
viewmodel_offset_z 0.0
viewmodel_offset_x 0.0
EDIT
Ok so i think i see what the problem is, the portal gun is being held not at the wrong angle, but the wrong height, i.e. it starts at chell's height and doesn't change for ballbot, eggbot holds it about the same height anyway. Can't find bendy to prechace(although i guess you wouldn't need to prechache him on the community maps, cos he's the default) or set model as, but didn't really want him anyway, but i assume when the map is uploaded, the gun would start at bendy's height, and would only really match ballbot's height. I guess.
also
viewmodel_offset_z 0.0
viewmodel_offset_x 0.0
doesn't help

Quote from josepezdj on June 13, 2012, 5:00 am@Tank420: After reading this thread I'm not really sure if you already managed to change the player model or not, as all replies urged you to visit other threads, would you please confirm? I think this is not difficult to achieve...
@Tank420: After reading this thread I'm not really sure if you already managed to change the player model or not, as all replies urged you to visit other threads, would you please confirm? I think this is not difficult to achieve...
Quote from Tank420 on June 13, 2012, 6:04 amjosepezdj wrote:@Tank420: After reading this thread I'm not really sure if you already managed to change the player model or not, as all replies urged you to visit other threads, would you please confirm? I think this is not difficult to achieve...You might wanna re-read the posts, only 2 people have pointed me else where, and the linked page was useful, but essentially it's not that difficult, you need to put a logic_auto, point_clientcommand, and a model of which ever player you want to use, all in a hidden room. make the logic_auto -> onmapspawn -> @command -> command -> setmodel <char here>
i am in the the process of making a character selection screen, and i have run into a problem changing from chell to eggbot, (holds the portal gun near his head)the problem doesn't arise when you change from chell to ballbot or ballbot to eggbot or any other combinations, just chell to eggbot, so i've made eggbot's change, include a 0.1 second change to ballbot before changing to eggbot.
Below should be a link to the work i've done so far, in this file there are 3 rooms, 1 is the global pti instance, 2 is the room i have described above, 3 is the room with the character selection. if you just want to have it change to a different character, room 2 is all you need, and you should change the logic auto depending on what you want
setmodel player/ballbot/ballbot
setmodel player/chell/playersetmodel player/eggbot/eggbot
(for this i suggest a 0.1 sec change to eggbot first to avoid strange positioning of portal gun)http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2096
You might wanna re-read the posts, only 2 people have pointed me else where, and the linked page was useful, but essentially it's not that difficult, you need to put a logic_auto, point_clientcommand, and a model of which ever player you want to use, all in a hidden room. make the logic_auto -> onmapspawn -> @command -> command -> setmodel <char here>
i am in the the process of making a character selection screen, and i have run into a problem changing from chell to eggbot, (holds the portal gun near his head)the problem doesn't arise when you change from chell to ballbot or ballbot to eggbot or any other combinations, just chell to eggbot, so i've made eggbot's change, include a 0.1 second change to ballbot before changing to eggbot.
Below should be a link to the work i've done so far, in this file there are 3 rooms, 1 is the global pti instance, 2 is the room i have described above, 3 is the room with the character selection. if you just want to have it change to a different character, room 2 is all you need, and you should change the logic auto depending on what you want
setmodel player/ballbot/ballbot
setmodel player/chell/player
setmodel player/eggbot/eggbot
(for this i suggest a 0.1 sec change to eggbot first to avoid strange positioning of portal gun)
http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2096

Quote from josepezdj on June 13, 2012, 6:18 amTank420 wrote:You might wanna re-read the posts, only 2 people have pointed me else where, and the linked page was useful, but essentially it's not that difficult, you need to put a logic_auto, point_clientcommand, and a model of which ever player you want to use, all in a hidden room. make the logic_auto -> onmapspawn -> @command -> command -> setmodel <char here>Exactly. That would be the scenario.
About the position of the portalgun, you have to use scripting and set its angles (could it be something like:
w_portalgun.SetAngles(ang.x,y,z);)
Exactly. That would be the scenario.
About the position of the portalgun, you have to use scripting and set its angles (could it be something like:
w_portalgun.SetAngles(ang.x,y,z);)
Quote from Tank420 on June 13, 2012, 6:25 amjosepezdj wrote:About the position of the portalgun, you have to use scripting and set its angles (could it be something like:w_portalgun.SetAngles(ang.x,y,z);
)Tbh the actual angle of the gun is fine, it's the height, and it's only really an issue when you can see the player model, you know how when you look through a portal and you can see yourself, your crosshairs normally are the same height as your gun, well depending on who you started out as, the crosshairs remain at the same height, while the position of the gun actually moves as it should. except with the slight glitch i mentioned when changing from chell to eggbot.
and i haven't got as far as learning how to implement scripting yet
Strange Eggbot Gun Position after changing from chell to eggbot
Height Differences(i don't really see this being an issue, i've made it switch to third person for 3 seconds then back to first person.
w_portalgun.SetAngles(ang.x,y,z);
)Tbh the actual angle of the gun is fine, it's the height, and it's only really an issue when you can see the player model, you know how when you look through a portal and you can see yourself, your crosshairs normally are the same height as your gun, well depending on who you started out as, the crosshairs remain at the same height, while the position of the gun actually moves as it should. except with the slight glitch i mentioned when changing from chell to eggbot.
and i haven't got as far as learning how to implement scripting yet
Strange Eggbot Gun Position after changing from chell to eggbot
Height Differences(i don't really see this being an issue, i've made it switch to third person for 3 seconds then back to first person.

Quote from ChickenMobile on June 13, 2012, 6:47 amTo get rid of this problem, simply just change the player other than chell and then change back to pbody?
To get rid of this problem, simply just change the player other than chell and then change back to pbody?
Quote from Tank420 on June 13, 2012, 6:51 amErrr
Tank420 wrote:i am in the the process of making a character selection screen, and i have run into a problem changing from chell to eggbot, (holds the portal gun near his head)the problem doesn't arise when you change from chell to ballbot or ballbot to eggbot or any other combinations, just chell to eggbot, so i've made eggbot's change, include a 0.1 second change to ballbot before changing to eggbotIt does turn out i've lied there tho, i've actually set the delay to 0.01
Errr
It does turn out i've lied there tho, i've actually set the delay to 0.01

Quote from ChickenMobile on June 13, 2012, 6:53 amtl;dr
tl;dr
Quote from Tank420 on June 13, 2012, 6:56 amchickenmobile wrote:tl;drWha?
Also, new problem, a combination unknown to me at this second causes ballbot to hold the gun strange too, i do wonder if this is just random?
EDIT:
it appears to be the same issue actually, from chell to ballbot, but putting it on eggbot first, then ballbot solves that too, so it seems when changing to one of the bots, you have to go to the other one first, then change to the one you want.stick that in your super secret steam forum.
ADDITIONAL EDIT:
i'm gonna publish this and see how it behaves with bendy as the default model.
(This seems to work fine, i do have the logic_auto changing to chell on mapspawn, but bendy would still be the default that it loaded wouldn't it)ADD ADD EDIT:
Third person needs sv_cheats 1? Really?ADD ADD ADD EDIT:
Turns out, the crosshairs stay the same height at all times anyway by the looks of things
AnotherEdit
Turns out if you are going to use bendy you need chell to have a dummy change too. and bendy will override the walk animation.
Wha?
Also, new problem, a combination unknown to me at this second causes ballbot to hold the gun strange too, i do wonder if this is just random?
EDIT:
it appears to be the same issue actually, from chell to ballbot, but putting it on eggbot first, then ballbot solves that too, so it seems when changing to one of the bots, you have to go to the other one first, then change to the one you want.
stick that in your super secret steam forum.
ADDITIONAL EDIT:
i'm gonna publish this and see how it behaves with bendy as the default model.
(This seems to work fine, i do have the logic_auto changing to chell on mapspawn, but bendy would still be the default that it loaded wouldn't it)
ADD ADD EDIT:
Third person needs sv_cheats 1? Really?
ADD ADD ADD EDIT:
Turns out, the crosshairs stay the same height at all times anyway by the looks of things
AnotherEdit
Turns out if you are going to use bendy you need chell to have a dummy change too. and bendy will override the walk animation.
Quote from Tank420 on June 13, 2012, 8:37 amgot it working pretty successfully i think.
Workshop file
http://steamcommunity.com/sharedfiles/filedetails/?id=76596900Zipped VMF
http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2096it seems the bottom line is, you need to change the player model twice, once real quick, and in set orders
to change to a bot from chell, you must first change to the other bot
to change to chell from bendy, you must first change to a botand i haven't encountered problems with changing to bendy.
EDIT:
Ok so i might of made the workshop file into an online petition to valve to allow either the player to control which character they use, or give the peti editor the ability to pick.
got it working pretty successfully i think.
Workshop file
http://steamcommunity.com/sharedfiles/filedetails/?id=76596900
Zipped VMF
http://forums.thinking.withportals.com/downloads.php?view=detail&df_id=2096
it seems the bottom line is, you need to change the player model twice, once real quick, and in set orders
to change to a bot from chell, you must first change to the other bot
to change to chell from bendy, you must first change to a bot
and i haven't encountered problems with changing to bendy.
EDIT:
Ok so i might of made the workshop file into an online petition to valve to allow either the player to control which character they use, or give the peti editor the ability to pick.