Please or Register to create posts and topics.

Change player model

PreviousPage 2 of 3Next

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

Tank420 wrote:
viewmodel_offset_y 0.0
viewmodel_offset_z 0.0
viewmodel_offset_x 0.0

doesn't help

Image

@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...

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj 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/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

Image
Tank420 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);)

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
josepezdj 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

Image

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.

Image
Image
Image

Image

To get rid of this problem, simply just change the player other than chell and then change back to pbody?

?????????????????????????????TWP Releases | My Workshop

Errr

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 eggbot

It does turn out i've lied there tho, i've actually set the delay to 0.01

Image

tl;dr

?????????????????????????????TWP Releases | My Workshop
chickenmobile wrote:
tl;dr

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

Image

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.

Image

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.

Image
PreviousPage 2 of 3Next