Raised This Month: $ Target: $400
 0% 

Replace through precache


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maleadt
New Member
Join Date: Aug 2008
Old 08-29-2008 , 14:18   Replace through precache
Reply With Quote #1

Hi all,

I'm running a HLDS Opposing Force server, with some additional amx plugins on it. I have however come accross a nice CTF/CP modification, which adds some teamplay to opposing force.
To install this mod, users have to extract the archive in their gearbox folder. The mod installs some extra models, some new sprites, new mapes, and an op4ctf.wad data file.

I however would like to send all those files to the player upon connection. So i've precached all files using a precache_generic() call (I've done this using an amxmodx plugin, so I can choose when exactly I want to send files [e.g. only when a ctf map is loaded]).

But this obviousely didn't end up being as easy as I hoped it would be. The mod installs a new HUD, to display icons upon flag captures et cetera. This is done by replacing the sprites/hud.txt file, which links events to sprites.
Anyway, as the file gets replaced, I can't provide it through a precache entry I've tried putting the modified hud.txt on my server and add it to the list of precache entries, but alas nothing gets downloaded to the user (as hud.txt does already exist, and half-life doesn't seem to check the contents of the file when verifying game resources).

So, is there a way to force a precache, or some workaround to get the files to the player (e.g. by removing it and forcing a reconnect, or smth)?

Thanks in advance!
maleadt

Last edited by maleadt; 08-29-2008 at 14:22.
maleadt 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 03:07.


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