AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Request] Plugin Biohazard Edit (https://forums.alliedmods.net/showthread.php?t=318299)

lent 08-23-2019 12:04

[Request] Plugin Biohazard Edit
 
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

LearninG 08-23-2019 14:10

Re: [Request] Plugin Biohazard Edit
 
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... 


lent 08-23-2019 14:25

Re: [Request] Plugin Biohazard Edit
 
Quote:

Originally Posted by LearninG (Post 2664452)
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 :D.

Also, what you gave me there, isn't for Zombie Plague? I mean, it says "zp_get_user_zombie".

LearninG 08-23-2019 14:35

Re: [Request] Plugin Biohazard Edit
 
ok , I will remove function and post full source as soon as possible.

lent 08-23-2019 14:38

Re: [Request] Plugin Biohazard Edit
 
Quote:

Originally Posted by LearninG (Post 2664456)
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 !

LearninG 08-24-2019 03:58

Re: [Request] Plugin Biohazard Edit
 
2 Attachment(s)
Hi , done , does that had so many "tag mismatch warnings" before ?

OciXCrom 08-24-2019 07:49

Re: [Request] Plugin Biohazard Edit
 
If it's a [Request] use the REQUESTS section. This section is for learning to do things by yourself.

lent 08-24-2019 08:58

Re: [Request] Plugin Biohazard Edit
 
Quote:

Originally Posted by LearninG (Post 2664522)
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 (Post 2664542)
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?

LearninG 08-24-2019 09:52

Re: [Request] Plugin Biohazard Edit
 
1 Attachment(s)
warnings fixed , test this and let me know results

lent 08-25-2019 16:29

Re: [Request] Plugin Biohazard Edit
 
Quote:

Originally Posted by LearninG (Post 2664565)
warnings fixed , test this and let me know results

Hello, the problem is still there, zombies still have human models..


All times are GMT -4. The time now is 17:21.

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