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 08-02-2019 22:56

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

Originally Posted by xZk (Post 2661622)
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");
    }



- Hi,xzk !!
- Sorry, for bothering you
- I did everything right as you said and it's still stuck on the floor.
- I feel very embarrassed because I have to ask someone for help many times, making them uncomfortable
- I feel quite sad because I have spent a lot of time on this and it has not been successful.
- I used google translate

xZk 08-03-2019 00:43

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
1 Attachment(s)
try this reedited version

cacaopea 08-03-2019 00:57

Re: [L4D2] Tank pick up junk.junk stuck on the floor.I need Help !!!
 
1 Attachment(s)
Quote:

Originally Posted by xZk (Post 2661629)
try this reedited version

- I tested,Still Stuck !! lol :)

xZk 08-03-2019 18:28

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
i just tested it and it works for me...:roll:
https://imgur.com/5mfnJJk

cacaopea 08-03-2019 20:57

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by xZk (Post 2661748)
i just tested it and it works for me...:roll:
https://imgur.com/5mfnJJk

- maybe you don't understand what I mean
- Your plugin is great
- but it only works well when the tank holds something near the vehicle and sticks to the rock
- when there is no object near it, it will not be the same as the object the tank is holding will be stuck on the floor
- As in the photo you sent, it was a car that stick to the rock, it looked excellent
- In my image,I don't have any cars nearby,just have racecar model
- It would be great if you could make the tank hold any object properly as if it were holding a rock
- Sorry,I used google translate

login101 08-03-2019 23:26

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by cacaopea (Post 2661772)
- maybe you don't understand what I mean
- Your plugin is great
- but it only works well when the tank holds something near the vehicle and sticks to the rock
- when there is no object near it, it will not be the same as the object the tank is holding will be stuck on the floor
- As in the photo you sent, it was a car that stick to the rock, it looked excellent
- In my image,I don't have any cars nearby,just have racecar model
- It would be great if you could make the tank hold any object properly as if it were holding a rock
- Sorry,I used google translate

I don't have a sp file.

The tank is using a plug-in to throw things.

It can be thrown with probability, and the thrown object is lost according to the set timer.

but
The action of a tank throwing things? when it's motion
He's holding a rock.

YouTube
https://youtu.be/koV4hOZ2nHk


If you look at it,
Throw a car in 4 minutes 45 seconds to 4 minutes 50 seconds.

throw a car

cacaopea 08-04-2019 01:06

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by login101 (Post 2661782)
I don't have a sp file.

The tank is using a plug-in to throw things.

It can be thrown with probability, and the thrown object is lost according to the set timer.

but
The action of a tank throwing things? when it's motion
He's holding a rock.

YouTube
https://youtu.be/koV4hOZ2nHk


If you look at it,
Throw a car in 4 minutes 45 seconds to 4 minutes 50 seconds.

throw a car

Wow,your plugin is so cool
- - I wonder you can share your plugin for me?. Although it is a bit dark, I still look quite well. It so awesome, I have never seen these before.
- I also have a few interesting plugins.
- If you are interested, please message me via facebook: https://m.facebook.com/PiplupUhita.PhongNino
- I used google translate

login101 08-04-2019 02:28

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by cacaopea (Post 2661790)
Wow,your plugin is so cool
- - I wonder you can share your plugin for me?. Although it is a bit dark, I still look quite well. It so awesome, I have never seen these before.
- I also have a few interesting plugins.
- If you are interested, please message me via facebook: https://m.facebook.com/PiplupUhita.PhongNino
- I used google translate

We don't have time right now. We're writing it on the mobile.

I'll look it up when I get home.

Maybe there's a file that I've backed up.

What do you mean by some interesting things? ㅇㅅㅇ?

cacaopea 08-04-2019 03:14

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by login101 (Post 2661793)
We don't have time right now. We're writing it on the mobile.

I'll look it up when I get home.

Maybe there's a file that I've backed up.

What do you mean by some interesting things? ㅇㅅㅇ?

If you want you can ib me via facebook

login101 08-04-2019 03:36

Re: [L4D2] Tank pick up junk.junk stuck on the floor. I need someone to help me !!!
 
Quote:

Originally Posted by cacaopea (Post 2661796)
If you want you can ib me via facebook


Okay.
If you go home,
I'll find the plug-in and send you a message.

I'm sick now.
He's in the hospital.
I sometimes go to PC room and enjoy l4d2.

I'm sorry to keep you waiting.ᅲ



go


All times are GMT -4. The time now is 12:36.

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