What function or line of code do I use to toggle the skin for say the alyx gun between assault rifle mode and pistol mode?
There is no "function" for doing this. I thought the alyx gun only had one world model, or am I missing something?
No your correct code_gs. World Models are normally static and the only animated related thing they have is a vector position relative to the gun for the muzzle flash effects in the .qc file.
[QUOTE=code_gs;43792789]There is no "function" for doing this. I thought the alyx gun only had one world model, or am I missing something?[/QUOTE]
Alyxgun world model has animations to toggle between rifle and pistol, if you didn't know.
Is there a way to force it to execute the transformation on equip so it's always a pistol?
[QUOTE=ZephyrWarrior;43797518]Is there a way to force it to execute the transformation on equip so it's always a pistol?[/QUOTE]
It's pistol by default. I think playing reload animation on the view model makes it play the "Make the pistol a rifle" animation.
I'm using the world model in a ttt weapon, the default I see on players is the rifle version. :/
[QUOTE=Robotboy655;43795517]Alyxgun world model has animations to toggle between rifle and pistol, if you didn't know.[/QUOTE]
That's misleading since he said "skin," not "animation."
Regardless, the point is that I want the world model to appear as a pistol on my server. Is there a way to do that?
Sorry, you need to Log In to post a reply to this thread.