Raised This Month: $51 Target: $400
 12% 

Tank rock killed other tanks .....


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jestery
BANNED
Join Date: Aug 2022
Location: Usa
Old 06-21-2023 , 15:12   Tank rock killed other tanks .....
Reply With Quote #1

I believe it's due to some mod I'm using, but the tank's rock can get stuck on another tank and kill that tank, with a huge impact sound. Can we fix this one?
Jestery is offline
Send a message via ICQ to Jestery Send a message via AIM to Jestery Send a message via Yahoo to Jestery Send a message via Skype™ to Jestery
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 06-21-2023 , 16:08   Re: Tank rock killed other tanks .....
Reply With Quote #2

It's not really a bug or anything. That mechanic has been there in the game for a very long time.
cravenge is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 06-28-2023 , 08:06   Re: Tank rock killed other tanks .....
Reply With Quote #3

use collisionhook

PHP Code:
public Action CH_PassFilter(int ent1int ent2bool &result)
{
    if (!
IsValidEdict(ent1) || !IsValidEdict(ent2)) return Plugin_Continue;

    static 
char ent1Name[20], ent2Name[20];

    
GetEdictClassname(ent1ent1Namesizeof(ent1Name));
    
GetEdictClassname(ent2ent2Namesizeof(ent2Name));

    if (
IsTank(ent1) && strcmp(ent2Name"tank_rock") == 0)
    {
        
result false;
        return 
Plugin_Handled;
    }

    return 
Plugin_Continue;

ProjectSky is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 03-12-2024 , 15:16   Re: Tank rock killed other tanks .....
Reply With Quote #4

Is there a plugin that can be used out of the box?
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
ZBzibing is offline
Reply



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 06:05.


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