Raised This Month: $32 Target: $400
 8% 

Solved Prevent Crashing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-09-2021 , 09:46   Prevent Crashing
Reply With Quote #1

Hey, i recently started to remake a old addons but my problem is the 512 limit, all good, got an unprecacher, but, some weapons' models i add has the base weapon on some of the unprecached weapons and i want to provent model change but i don't know how i should do that, by using Ham and hook spawn and setmodel and then supercede? By using fakemeta think then change the unprecached models if they re used with an empty model? I thought i could actually use Entity Resource Replacement plugin but didn't work...

Last edited by AnimalMonster; 06-14-2021 at 00:14.
AnimalMonster is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-09-2021 , 12:07   Re: Prevent Crashing
Reply With Quote #2

Or never mind, it s just a **** problem evwryone has and cannot be avoided, that s probably it
AnimalMonster is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 06-09-2021 , 12:30   Re: Prevent Crashing
Reply With Quote #3

You'll need to hook DefaultDeploy.
https://github.com/s1lentq/ReGameDLL...pons.cpp#L1337
__________________








CrazY. is offline
Old 06-10-2021, 22:47
AnimalMonster
This message has been deleted by AnimalMonster.
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-10-2021 , 22:50   Re: Prevent Crashing
Reply With Quote #4

Thanks, i'm going to try this right away
AnimalMonster is offline
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-12-2021 , 13:44   Re: Prevent Crashing
Reply With Quote #5

What about world models? Weapon's world model.
AnimalMonster is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-12-2021 , 18:25   Re: Prevent Crashing
Reply With Quote #6

You can hook FM_SetModel i assume
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-13-2021 , 19:40   Re: Prevent Crashing
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
You can hook FM_SetModel i assume
i've tried it already, fail.

Last edited by AnimalMonster; 06-13-2021 at 19:53.
AnimalMonster is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 06-13-2021 , 23:44   Re: Prevent Crashing
Reply With Quote #8

The question is when are you hooking it?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
AnimalMonster
Senior Member
Join Date: May 2020
Old 06-14-2021 , 00:05   Re: Prevent Crashing
Reply With Quote #9

Quote:
Originally Posted by Natsheh View Post
The question is when are you hooking it?
on plugin init, but does it matter? since it should be called before setting the model so i could supercede it. I'll try a second time so i won't say some stupid thing.

Edit: nvm, it worked this time thanks @Natsheh and @CrazY.

in previous try on this i usev pev to get the model, im so d*** )))

Last edited by AnimalMonster; 06-14-2021 at 00:23.
AnimalMonster is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-14-2021 , 04:36   Re: Prevent Crashing
Reply With Quote #10

How exactly did you use Entity Resource Replacement?
What exactly did not work? If you use complete replacement then models are not precached. If you use dynamic replacement then old models will still be precached.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 19:54.


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