Giving a model a weapon
Code:
I put a list of the models in this array so you guys can use this to give it a random weapon or something (BUT YOU MUST change the model's sequence to match the weapon). Code:
I'm posting this because I was trying to figure this out for a long time, then I found a resource on google that talked about MOVETYPE_FOLLOW and it explained the above. So enjoy |
GJ Pimp Daddy. Would the same thing work with DoD? Using a DoD gun model I mean. :)
|
Added into helpful / useful stuff
|
So this means that the gun appears in the right spot in the player's hands. But what you said about model animation, what do you mean?
|
Could this be used to let someone buy the rocket launcher from single player half-life, from a custom menu like the warcraft 3 shopmenu, or is this just replacing the weapon model the player sees?
|
you have to make sure the model's sequence is correct. I think I used 4 to hold the m4a1 and ak, etc... mp5...
Only some weapons look correct, you'll have to play with it. And yes it works for dod... And no this doesn't allow to add a rocket launcher. |
Actually, if you change your model, and make plugin fires rocket when that model is enabled, sure, why not? :oops:
|
Well yea you could make someone hold a rocket launcher. What I'm saying is that the code provided above won't have the functionality to shoot it. You'd just be "holding" a non-functioning rocket launcher.
|
Re: Giving a model a weapon
Do you have to make a new...
Code:
Code:
|
Re: Giving a model a weapon
how would you go about making the animations work? this is something i've always had problems with...
|
All times are GMT -4. The time now is 17:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.