.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Re: [CZ] Changing model directory "on the fly"?
Old
  (#41)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 12-07-2005

Almost there but the replacement model name in the config _MUST_ match the folder in "models/player".
For example, sas=ct should be sas=de_piranesi_cz_ct.

Config file reading is done, hopefully I can finish this thing tonight and send out a test version for you to play around with.

Quote:
....or am I a bit tired from being in the sun too long?
Yeah, it's really hot up here too - that air conditioner was the best thing I ever bought

[Added]
No, models and sounds take up the usual paths that were set before.
It's only player models that require special handling.

So, to change hostage.mdl its still easy as putting a replacement in models/cs_assault/

Last edited by Lazy; 12-07-2005 at 21:03..
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#42)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ] Changing model directory "on the fly"? - 12-07-2005

Right, I'm with you now

Good good!! I look forward to having a play with it.

Cheers for now

PS - Off to make myself hotter now by slaving over a hot frying pan!
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#43)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 13-07-2005

Got it working!
Heres the proof that this thing actually exists.

Test version coming soon, gotta clean up the code a bit.
Attached Thumbnails
Click image for larger version

Name:	cs_assault0000.jpg
Views:	407
Size:	68.2 KB
ID:	689  
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#44)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ] Changing model directory "on the fly"? - 13-07-2005

Excellent stuff

I'll check for it when I finish work tomorrow. Then I shall give it EXTENSIVE use!!

Nice work Lazy.

Cheers for now
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#45)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 14-07-2005

I could only test this on my listenserver ( turned the bomb into a chicken on de_nuke ), but it should work.
Compiled for win32 only as I don't have the resources to do a linux compile right now.
Attached Files
File Type: zip mapmodelchanger.zip (85.4 KB, 607 views)
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#46)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ] Changing model directory "on the fly"? - 14-07-2005

Nice one Lazy!!

i tried it quickly before I had to dash out for work this morning. Seems to work a treat. I'm going to put it through it's paces later

Just a quick n00b question for you...

By specifying 10 models (in my example above), does this mean that it actually precaches 10 models to memory (i.e. replacing sas, militia etc) or does it only precache the equivalent of 2 models (i.e. the ct and t variant)?

If it is the former, I will have to use minmodels and only precache leet and gign... but it'll still work fine!
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#47)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 14-07-2005

Nah, HL will not precache something more than once.
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#48)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ] Changing model directory "on the fly"? - 14-07-2005

Hey you are right (of course!!)

It really works well. I have set up all of my CZ maps so they behave just like they would be in the XBox version...

The hostages work nicely too, providing you roll back to a "pre-emotional hostages" mp.dll

Here are a couple of screenies....

Lazy... you are a genius...thanks a lot
Attached Thumbnails
Click image for larger version

Name:	cs_downed_cz0000.jpg
Views:	366
Size:	88.8 KB
ID:	692   Click image for larger version

Name:	cs_militia_cz0000.jpg
Views:	386
Size:	79.7 KB
ID:	693  
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#49)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: [CZ] Changing model directory "on the fly"? - 14-07-2005

No problem
  
Reply With Quote
Re: [CZ] Changing model directory "on the fly"?
Old
  (#50)
Rusty Le Cyborg
Complete Amateur
 
Rusty Le Cyborg's Avatar
 
Status: Offline
Posts: 52
Join Date: May 2005
Default Re: [CZ] Changing model directory "on the fly"? - 16-07-2005

Lazy... this is great

I even have my Tour of Duty set up so it uses your addon, works an absolute treat!!

Environskin used to do a similar thing, but it used the botprofile.db to do the same so all of the models were precached whent he game started, not when the map started, so it gave a few errors on bigger maps.

I am considering releasing a pack of skins so people can do the same, would it be okay to package the addon with it, or should I just link over here? (That's if I could find the space!)

Cheers for now
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 3 (0 members and 3 guests)
 
Thread Tools

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com