Raised This Month: $51 Target: $400
 12% 

precaching models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PvtSmithFSSF
Senior Member
Join Date: Jul 2008
Old 09-30-2008 , 15:37   precaching models
Reply With Quote #1

I realize it's super "nooby" but I never learned for some reason..
Can somebody give me a working snippet of code that shows how to give a player a model named "testmodel.mdl" in the cstrike/models folder? I believe that's how it's done, atleast..Oh, and the modules needed? Thanks.

-PvtSmithFSSF
PvtSmithFSSF is offline
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 09-30-2008 , 15:51   Re: precaching models
Reply With Quote #2

Player Model or weapon model? ;>
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
PvtSmithFSSF
Senior Member
Join Date: Jul 2008
Old 09-30-2008 , 16:05   Re: precaching models
Reply With Quote #3

A player model, sorry.
Although including weapons would be helpful for the future..
PvtSmithFSSF is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-30-2008 , 16:07   Re: precaching models
Reply With Quote #4

Code:
public plugin_precache()
{
     precache_model("models/player/playermodel1/playermodel1.mdl")
     precache_model("models/player/playermodel2/playermodel2.mdl")
     precache_model("models/weapons/weaponmodel1/weaponmodel1.mdl")
     precache_model("models/weapons/weaponmodel2/weaponmodel2.mdl")
}
__________________
minimiller is offline
Send a message via MSN to minimiller
PvtSmithFSSF
Senior Member
Join Date: Jul 2008
Old 09-30-2008 , 16:09   Re: precaching models
Reply With Quote #5

And how would I give a player that model now that I have precached it? For example I'm trying to give a player a model on round start.
PvtSmithFSSF is offline
Prajch
Senior Member
Join Date: Dec 2007
Location: anger++
Old 09-30-2008 , 16:10   Re: precaching models
Reply With Quote #6

Check this out http://forums.alliedmods.net/showthread.php?t=69386
Prajch is offline
Old 09-30-2008, 16:16
FakeNick
This message has been deleted by FakeNick. Reason: Sorry, my fail. Thanks to minimiller ;].
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 09-30-2008 , 16:17   Re: precaching models
Reply With Quote #7

did u even look at the link Prajch posted?
__________________
minimiller is offline
Send a message via MSN to minimiller
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-01-2008 , 00:56   Re: precaching models
Reply With Quote #8

http://forums.alliedmods.net/showpos...83&postcount=7
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 12:27.


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