• My first WIP gamemode ever, well... first steps in lua too...
    75 replies, posted
DoModal sets focus on the panel and won't let focus be changed until the panel is closed. You have to do the black background yourself.
Finally, i am done with this menu and the player model is updated in game depending of the chosen character+ character data is loaded in the ply object, however i have a couple of annoying glitches... -a big "C stack overflow" when respawning the player (i use ply:SilentKill() then unset my special spectator code and set the new playermodel in PlayerSpawn() ) -my custom models are only partially animated and i don't know why (setting them as my playermodel ingame did work perfectly, or is there a special animation set for when you have no weapons?)
There has to be a certain animation set in the char model. If it's not specifically made for GMod, it probably won't have 'em. Also, the stack overflow on player spawn could mean you are calling a baseclass function. Those calls should go to hell, I tell you. They always cause stack overflows.
[QUOTE=esalaka;17961007]There has to be a certain animation set in the char model. If it's not specifically made for GMod, it probably won't have 'em. Also, the stack overflow on player spawn could mean you are calling a baseclass function. Those calls should go to hell, I tell you. They always cause stack overflows.[/QUOTE] I'm not completely sure, i think i inadvertantly created an infinite event loop, it's fixed now. The model i decompiled and recompiled myself with npc anims and playermodel anims but it appear it is missing the animation for walking unarmed... i also noticed something odd... the playermodels in gmod do not appear to use the "run" animation when hitting the sprint key... is there a way to fix this or could it be that my sprint speed is too slow? It looks really odd to see the playermodel run this fast... for the anim issue, i use the following lines in my .qc $includemodel "humans/female_shared.mdl" $includemodel "humans/female_ss.mdl" $includemodel "humans/female_gestures.mdl" $includemodel "humans/female_postures.mdl" $includemodel "f_anm.mdl" $includemodel "f_shd.mdl" $includemodel "f_pst.mdl" $includemodel "f_gst.mdl" But with no weapons, the model is doing the cross pose (it's fine with a weapon)
Try $includemodel "m_anm.mdl" $includemodel "m_gst.mdl" $includemodel "m_pst.mdl" $includemodel "m_shd.mdl" $includemodel "m_ss.mdl" $includemodel "humans/male_shared.mdl"
[QUOTE=Jamie932;17962669]Try $includemodel "m_anm.mdl" $includemodel "m_gst.mdl" $includemodel "m_pst.mdl" $includemodel "m_shd.mdl" $includemodel "m_ss.mdl" $includemodel "humans/male_shared.mdl"[/QUOTE] Wouldn't that be for a male character? :D
Them people on the Modelling-forum are likely to know what you need to include :)
[QUOTE=esalaka;17972287]Them people on the Modelling-forum are likely to know what you need to include :)[/QUOTE] crackbone get out of this body.
[QUOTE=die_angel;17962685]Wouldn't that be for a male character? :D[/QUOTE] Doesn't matter. They are pretty much the same. I use it for my female player models.
found, the animation for unarmed walking is stored in $includemodel "f_ss.mdl"
Where do you find all the anims?
by digging around these forums? :D
I found mine from decompiling models. And yeah, Die, you could have just changed the animations I posted above to $includemodel "f_anm.mdl" $includemodel "f_gst.mdl" $includemodel "f_pst.mdl" $includemodel "f_shd.mdl" $includemodel "f_ss.mdl" $includemodel "humans/female_shared.mdl"
[QUOTE=Jamie932;17986376]I found mine from decompiling models. And yeah, Die, you could have just changed the animations I posted above to $includemodel "f_anm.mdl" $includemodel "f_gst.mdl" $includemodel "f_pst.mdl" $includemodel "f_shd.mdl" $includemodel "f_ss.mdl" $includemodel "humans/female_shared.mdl"[/QUOTE] yes but i didn't realise at first you had 5 lines of "f_" when i only had 4 thanks :)
Will this be a public release?
I can tell u... [QUOTE=Infinity1995;17916329]OMG! i took one look at this thread and said "first gamemode its odviously shit" and now i took a look and this will be great when its finished! :cheers: Public, Private or Sell?[/QUOTE] [QUOTE=die_angel;17916375]Too early to decide :) And thanks :D[/QUOTE]
Sorry, you need to Log In to post a reply to this thread.