Raised This Month: $231 Target: $400
 57% 

[Request] Plugin Biohazard Edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lent
Junior Member
Join Date: Oct 2011
Old 08-23-2019 , 12:04   [Request] Plugin Biohazard Edit
Reply With Quote #1

Hello,

As the title says, I need some help from you guys, I have this biohazard plugin, it's a bit different from the normal ones, it has this function inside of it "#define DEFAULT_HUMAN_MDL "gign" ". Well, what I want is:

Can anybody remove that function for good? I mean, to remove that thing that sets a default model for humans, because the problem is, with that function there, it gives a human model for some zombies as well, so the zombies will look like humans, and that's not okey. So, can you guys remove it so it won't set any default model for humans? Cause if that's gonna be removed from there, everything is gonna work fine. I will attach bellow the next sources, the one with the problem, that needs to be solved, one default source without that function, so you guys can have an example what I am talking about, and the cfg that requires to be compiled. The reason why I am not using the default source, is because that one with problems, it's an upgraded version, but I want that function with model defaults, OFF !




THE BIOHAZARD SOURCE WITH PROBLEMS:
Code:
https://www.mediafire.com/file/4qx3eqzwl38l479/biohazard.sma/file
PHP Code:
new model[128]
    
formatex(modelcharsmax(model), "models/player/%s/%s.mdl"DEFAULT_PMODELDEFAULT_PMODEL)
    
precache_model(model)
    
precache_model(DEFAULT_WMODEL)

    new 
model1[128];
    
formatex(model1charsmax(model1), "models/player/%s/%s.mdl"DEFAULT_HUMAN_MDLDEFAULT_HUMAN_MDL)
    
precache_model(model1)
    
    new 
imodel2[128]
    for(
0g_classcounti++)
    {
        
formatex(model2charsmax(model2), "models/player/%s/%s.mdl"g_class_pmodel[i], g_class_pmodel[i])
        
precache_model(model2)
        
precache_model(g_class_wmodel[i])
    } 
THE BIOHAZARD EXAMPLE SOURCE:
Code:
https://www.mediafire.com/file/vdcy7lmg5f1us17/biohazard.sma/file
THE BIOHAZARD.CFG
Code:
https://www.mediafire.com/file/s4iy3ramck70ft8/biohazard.cfg/file
lent is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-23-2019 , 14:10   Re: [Request] Plugin Biohazard Edit
Reply With Quote #2

I can fix it , so it won't set model for zombies if you want ?
You can also fix it just by checking if player not zombie :
PHP Code:
if (zp_get_user_zombie(id)
          return 
PLUGIN_HANDLED 
Or
PHP Code:
if (!zp_get_user_zombie(id)
     
//Code... 

Last edited by LearninG; 08-23-2019 at 14:12.
LearninG is offline
lent
Junior Member
Join Date: Oct 2011
Old 08-23-2019 , 14:25   Re: [Request] Plugin Biohazard Edit
Reply With Quote #3

Quote:
Originally Posted by LearninG View Post
I can fix it , so it won't set model for zombies if you want ?
You can also fix it just by checking if player not zombie :
PHP Code:
if (zp_get_user_zombie(id)
          return 
PLUGIN_HANDLED 
Or
PHP Code:
if (!zp_get_user_zombie(id)
     
//Code... 

Hmm, what do you mean by that? Like, isn't possible so that function can be removed for good? I mean, I don't want to set any model by default, let the game do it properly. Also, if your ideea is good, we can give it a try, I am not really into this things so I don't know where to modify as you said, can you do it directly and post all the source here? Sorry for this, but I am new to this .

Also, what you gave me there, isn't for Zombie Plague? I mean, it says "zp_get_user_zombie".
lent is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-23-2019 , 14:35   Re: [Request] Plugin Biohazard Edit
Reply With Quote #4

ok , I will remove function and post full source as soon as possible.
LearninG is offline
lent
Junior Member
Join Date: Oct 2011
Old 08-23-2019 , 14:38   Re: [Request] Plugin Biohazard Edit
Reply With Quote #5

Quote:
Originally Posted by LearninG View Post
ok , I will remove function and post full source as soon as possible.
Don't rush, just take your time, thank you very much for trying to help me, I really appreciate !
lent is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-24-2019 , 03:58   Re: [Request] Plugin Biohazard Edit
Reply With Quote #6

Hi , done , does that had so many "tag mismatch warnings" before ?
Attached Files
File Type: sma Get Plugin or Get Source (biohazard.sma - 54 views - 81.1 KB)
File Type: cfg biohazard.cfg (3.6 KB, 15 views)
LearninG is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-24-2019 , 07:49   Re: [Request] Plugin Biohazard Edit
Reply With Quote #7

If it's a [Request] use the REQUESTS section. This section is for learning to do things by yourself.
__________________


Dear admins. If somehow you managed to read this, plz fix.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
lent
Junior Member
Join Date: Oct 2011
Old 08-24-2019 , 08:58   Re: [Request] Plugin Biohazard Edit
Reply With Quote #8

Quote:
Originally Posted by LearninG View Post
Hi , done , does that had so many "tag mismatch warnings" before ?
Hello there, man, you are a genius indeed, I am telling you. That functions has been removed completely, but, the thing is, it does still give the zombies, human model...I don't know why might be the cause now . What is your opinion? Can I give you the server in Private to have a look, or... ?

Quote:
Originally Posted by OciXCrom View Post
If it's a [Request] use the REQUESTS section. This section is for learning to do things by yourself.
I am sorry for this, I am new to this so I didn't knew. Can somebody move my topic to the right section, please?
lent is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 08-24-2019 , 09:52   Re: [Request] Plugin Biohazard Edit
Reply With Quote #9

warnings fixed , test this and let me know results
Attached Files
File Type: sma Get Plugin or Get Source (biohazard.sma - 130 views - 87.3 KB)

Last edited by LearninG; 08-24-2019 at 11:28.
LearninG is offline
lent
Junior Member
Join Date: Oct 2011
Old 08-25-2019 , 16:29   Re: [Request] Plugin Biohazard Edit
Reply With Quote #10

Quote:
Originally Posted by LearninG View Post
warnings fixed , test this and let me know results
Hello, the problem is still there, zombies still have human models..
lent 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 13:52.


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