Raised This Month: $ Target: $400
 0% 

Spawning a gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-22-2004 , 18:40   Spawning a gun
Reply With Quote #1

I need to know how to make a model appear in someones hand, or to everyone else. Help?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-22-2004 , 18:41  
Reply With Quote #2

change model?
create entity and dispatch it?
Freecode is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-22-2004 , 18:57  
Reply With Quote #3

I want to make them have a new gun model, but would making an ent and dispatching it do that?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 09-22-2004 , 19:01  
Reply With Quote #4

u mean switching the way the gun looks by replacing it with another model?
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
Freecode
Never Fall Asleep
Join Date: Jan 2004
Old 09-22-2004 , 19:03  
Reply With Quote #5

yes make a new weapon entity under a person and dispatch it then drop the players current weapon. or u can change the current weapon model
Freecode is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 09-22-2004 , 20:25  
Reply With Quote #6

And could you give me an example of how to do this?
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
Ingram
Veteran Member
Join Date: May 2004
Old 09-22-2004 , 22:39  
Reply With Quote #7

couldn't u just change the weapon model ent var?

its a string, but some mods use a number, i guess thats the number of the allocated string, so just allocate a string for those mods or something
Ingram is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 09-23-2004 , 13:15  
Reply With Quote #8

Quote:
couldn't u just change the weapon model ent var?
Nope, doesn't change the actual weapon, only how it looks. There's actually several things that can happen you can:

1. Have a scout
2. The scout can look like an AK47 to you
3. It can look like a glock to everyone else.

Changing the model itself won't change how the gun operates so even if you changed the model of your glock to an ak47, it will still act like a glock and look like one to everyone else but you (mattering of course, which model you change)
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Ingram
Veteran Member
Join Date: May 2004
Old 09-23-2004 , 14:55  
Reply With Quote #9

so jsut check for the buttons IN_ATTACK, IN_ATTACK2, and IN_RELOAD and make them do whatever u want

so its really just a model
Ingram is offline
Votorx
Senior Member
Join Date: Jun 2004
Old 09-23-2004 , 16:48  
Reply With Quote #10

Quote:
so jsut check for the buttons IN_ATTACK, IN_ATTACK2, and IN_RELOAD and make them do whatever u want
Won't work that way, your just going to have to replace the weapon they have.
__________________
Currently Looking for a mod team.
Votorx is offline
Send a message via AIM to Votorx Send a message via MSN to Votorx Send a message via Yahoo to Votorx
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode