Any idea/trick to add more that 12 models for knife?

Coding Help/Re-API Supported
Post Reply
Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

Any idea/trick to add more that 12 models for knife?

#1

Post by Obada » 6 years ago

Hello guys,

I faced problem in precache_model limit.

I search on google on how to bypass this limit but no luck because this limit setup in the engine of hlds.

But i'm sure there is a solution because i see you guys you setting models for guns and knife and i see this in some of mods on the internet have a lot of modules.

This is the
public plugin_precache()
which i need to solve it.

Code: Select all

public plugin_precache()
{
    precache_model(knife1_default)
    precache_model(knife2_default)
    precache_model(knife1_level1)
    precache_model(knife2_level1)
    precache_model(knife1_level5)
    precache_model(knife2_level5)
    precache_model(knife1_level7)
    precache_model(knife2_level7)
    precache_model(knife1_level10)
    precache_model(knife2_level10)
    precache_model(knife1_level15)
    precache_model(knife2_level15)
    precache_model(knife1_level18)
    precache_model(knife2_level18)
    precache_model(knife1_level20)
    precache_model(knife2_level20)
    precache_model(knife1_level25)
    precache_model(knife2_level25)
    precache_model(knife1_level27)
    precache_model(knife2_level27)
    precache_model(knife1_level30)
    precache_model(knife2_level30)
}
I hope to find solution from you guys ;)

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#2

Post by Night Fury » 6 years ago

Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

#3

Post by Obada » 6 years ago

So bro i just include my precache path into this plugin and i must remove the public plugin_precache() from my plugin?


Edited: Okay i just upload this plugin and my plugin work without problem.

So guys any other suggestion to remove other unnecessary models,sounds,,,, etc ?

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#4

Post by Night Fury » 6 years ago

What do you mean with removing other unnecessary stuff?
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Obada
Member
Member
Palestine
Posts: 27
Joined: 6 years ago
Contact:

#5

Post by Obada » 6 years ago

I mean that precache plugin remove collection of models not important on zombie escape mod ( and this awesome idea ). So i ask if there is any other list of models unnecessary for zombie escape mod which i can add it to the precache plugin, so i can add more sapce for precahce limit in the future.

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#6

Post by Night Fury » 6 years ago

This plugin fixes your problem. Run it & you'll be able to add more than 512 models, ....
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 6 guests