Portalgun animation question
I wanted to know if there was a way I could trigger certain portalgun animations to happen, while I was hold the gun, so I would like to know if there is a console command or some targetname + animation name I could trigger to make this happen
thanks
chickenmobile wrote:
Technically the portal gun the player is holding is just weapon_portalgun, therefore you can trigger any outputs etc. you can do on a weapon_portalgun on the ground.
also, if you need the firing anim, just make the I/O so:
when this happens, fire orange portal 0.50
when this happens (same thing), activate an invisible fizzler/portal detecter that kills portals that is parented to the gun, in front of the gun. 0.00
I tried giving a name to the portalgun on ground, but after being grabbed, I/O dont work.
ChickenMobile wrote:
Technically the portal gun the player is holding is just weapon_portalgun, therefore you can trigger any outputs etc. you can do on a weapon_portalgun on the ground.
No you can't. The weapon_portalgun is destroyed and replaced by a viewmodel entity, which as far as I can tell accepts every input a prop_dynamic does EXCEPT the ones to run animations. That's why I use prop_dynamics for the Multitool; I can SetModel the viewmodel to something else, but I can't make it animate.
Parenting another one to the player? maybe, but I bet it will be difficult to pair the aim direction.
gallardo wrote:
thanks mr wolf
like in Pulp Fiction?
FelixGriffin wrote:
No you can't. The weapon_portalgun is destroyed and replaced by a viewmodel entity, which as far as I can tell accepts every input a prop_dynamic does EXCEPT the ones to run animations. That's why I use prop_dynamics for the Multitool; I can SetModel the viewmodel to something else, but I can't make it animate.
Correct, as far as I've tested the weapon_portalgun stops being so after it's grabbed by the player, becoming the viewmodel version and sort of part of the player herself... that's why I haven't ever been able to use the SetModel function with it... so, Felix, what exactly are you suggesting to use the SetModel function with the viewmodel gun?
By animate do you mean the pick up/take off GLaDOS animations from the offical campaign?