AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved . (https://forums.alliedmods.net/showthread.php?t=317739)

cacaopea 07-27-2019 02:59

.
 
https://drive.google.com/open?id=1ou...05ZpaeDtLJhmmS

zaviier 07-27-2019 08:02

Re: [L4D2] Tank pick up junk.I need Help !!!
 
maybe try change the model

PHP Code:

#define MODEL_CONCRETE_CHUNK         "models/props_debris/concrete_chunk01a.mdl"
#define MODEL_TREE_TRUNK             "models/props_foliage/tree_trunk.mdl" 


cacaopea 07-27-2019 08:29

Re: [L4D2] Tank pick up junk.I need Help !!!
 
Quote:

Originally Posted by zaviier (Post 2660809)
maybe try change the model

PHP Code:

#define MODEL_CONCRETE_CHUNK         "models/props_debris/concrete_chunk01a.mdl"
#define MODEL_TREE_TRUNK             "models/props_foliage/tree_trunk.mdl" 


i know i tried change other model,it work but i want a tank pick up junk on hand like pick up a rock,junk stuck at middle
- i used google translate
- you can see image,tank pick up car normal,when i try change other model it not like in image,junk stuck in the middle :) : https://imgur.com/a/al6N8hy

xZk 07-29-2019 14:38

Re: [L4D2] Tank pick up junk.I need Help !!!
 
1 Attachment(s)
oddly, it resurfaced me to try to do this same idea when I saw that plugin https://forums.alliedmods.net/showthread.php?t=315775xd
I will leave you something that I had edited with that plugin, a couple of months ago, for now just add another alternative that would be to match the objects near the tank with the rock of the tank and the other option commented is to match the objects to the same tank. I would like to help you even more but my English stinks and I don't have much to edit and test plugins either :/

cacaopea 07-29-2019 19:41

Re: [L4D2] Tank pick up junk.I need Help !!!
 
Quote:

Originally Posted by xZk (Post 2661054)
oddly, it resurfaced me to try to do this same idea when I saw that plugin https://forums.alliedmods.net/showthread.php?t=315775xd
I will leave you something that I had edited with that plugin, a couple of months ago, for now just add another alternative that would be to match the objects near the tank with the rock of the tank and the other option commented is to match the objects to the same tank. I would like to help you even more but my English stinks and I don't have much to edit and test plugins either :/

Thanks, xZk
- Although it's not as perfect as I thought but it's work similar and I really like it.
- You saved my life, man !! : D
- However, I think you will see lux mentioned about this issue:
"While this wont fix the issue it will make it look like you fixed it.

Hide the rock model and parent another model on it, same concept as LMC! "
- I think this relates to lux's lmc changer plugin
- If you can, you can try it.
- Like I said, I'm not good at plugins, but I thinks you can do it and do it perfectly.
-Thanks again, xZk
- I used google tranlate

Marttt 08-02-2019 13:02

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
Hey cacaopea,

Here you said that actually worked what Aya/xKz did.
https://forums.alliedmods.net/showth...=315775&page=2

I didn't understand...what do you need now?

cacaopea 08-02-2019 19:00

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
Quote:

Originally Posted by Marttt (Post 2661564)
Hey cacaopea,

Here you said that actually worked what Aya/xKz did.
https://forums.alliedmods.net/showth...=315775&page=2

I didn't understand...what do you need now?

It not actually work
- Hi martt
- Your plugin that xzk has edited will only stick when an object is near. When there is no object nearby, it will throw another model and it will still be stuck :)
- I was very headache about this for 5 days
- I am trying to learn more from other people, I tried and tried but really bad, it never succeeded. - I hope someone will help me
- My English very bad

luis enrique 08-02-2019 19:20

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
Quote:

Originally Posted by cacaopea (Post 2661598)
It not actually work
- Hi martt
- Your plugin that xzk has edited will only stick when an object is near. When there is no object nearby, it will throw another model and it will still be stuck :)
- I was very headache about this for 5 days



https://www.youtube.com/watch?v=Qn0mRM4-ON4



?

cacaopea 08-02-2019 19:49

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
Quote:

Originally Posted by luis enrique (Post 2661600)

watch video you can see,junk stuck on the floor
- I was very headache about this
- https://drive.google.com/open?id=1sZ...RgcgKevttv_ZTF

xZk 08-02-2019 22:20

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
hi again cacaopea, I think I understood your concept well, you want the object that lifts the tank, this turns as if it were a rock and when it is impacted it should break.
you could try eliminating all this part of the code:
PHP Code:

public void OnEntityDestroyed(int entity)
{
    if(!
IsValidEntRef(entity))
        return;
    
char classname[64];
    
GetEntityClassname(entityclassnamesizeof classname);
    if (
StrEqual(classname"tank_rock"false))
    {
        
int ent GetEntPropEnt(entityProp_Data"m_hMoveChild");
        if(
IsValidEntRef(entity))
            
RemoveParent(ent);
    }


or else replace that same part of the code with this:
PHP Code:

public void OnEntityDestroyed(int entity)
{
    if(!
IsValidEnt(entity))
        return;
    
char classname[64];
    
GetEntityClassname(entityclassnamesizeof classname);
    if (
StrEqual(classname"tank_rock"false))
    {
        
int ent GetEntPropEnt(entityProp_Data"m_hMoveChild");
        if(
IsValidEnt(ent))
            
AcceptEntityInput(ent"Kill");
    }




All times are GMT -4. The time now is 11:52.

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