AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   forcing dl models (https://forums.alliedmods.net/showthread.php?t=17739)

s.w.a.t 09-07-2005 19:34

forcing dl models
 
/*
* Plugin for sounds precache
*/

#include <amxmodx>

public plugin_precache(){
precache_sound( "misc/impressive.wav")
precache_sound( "misc/headshot.wav")
precache_sound( "misc/multikill.wav")
precache_sound( "misc/doublekill.wav")
precache_sound( "misc/godlike.wav")
precache_sound( "misc/ultrakill.wav")
precache_sound( "misc/killingspree.wav")
precache_sound( "misc/rampage.wav")
precache_sound( "misc/unstoppable.wav")
precache_sound( "misc/monsterkill.wav")
precache_sound( "misc/humiliation.wav")
precache_sound("misc/knockedout.wav")
precache_sound( "misc/firstblood.wav" )
precache_sound( "misc/maytheforce.wav" )
precache_sound( "misc/oneandonly.wav" )
precache_sound( "misc/prepare.wav" )
precache_sound( "misc/oneandonly.wav" )
precache_model("models/player/gign/gign.mdl")
precache_model("models/player/sas/sas.mdl")
precache_model("models/player/gsg9/gsg9.mdl")
precache_model("models/player/urban/urban.mdl")
precache_model("models/player/arctic/arctic.mdl")
precache_model("models/player/leet/leet.mdl")
precache_model("models/player/guerilla/guerilla.mdl")
precache_model("models/player/terror/terror.mdl")
precache_model("models/player/vip/vip.mdl")

return PLUGIN_CONTINUE
}

public plugin_init() {
register_plugin("Sounds Precache",AMXX_VERSION_STR,"AMXX Dev Team")


this should make clients dl old cs models upon entering server right? if not what do i need to change...

XxAvalanchexX 09-07-2005 22:57

You can't make clients download a file that they already have.

s.w.a.t 09-07-2005 23:10

i know but i tested this wihtout having any fiels setup it should precache the models and dl if no file is found right?

XxAvalanchexX 09-08-2005 01:17

It should, except that models/player/gign/gign.mdl already exists in the Steam game cache so it won't download anything.

s.w.a.t 09-08-2005 07:09

any ways to bypass the steam cache or something dunno what the possiblilites are

{NM}Jason 09-08-2005 07:16

use the model Replacement Tech found On the Fourms it alliows you to change the model on perty much anything ..

XxAvalanchexX 09-08-2005 15:14

Quote:

Originally Posted by s.w.a.t
any ways to bypass the steam cache

No.


All times are GMT -4. The time now is 14:31.

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