AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [BUG] JailBreak Mod by Pastout (https://forums.alliedmods.net/showthread.php?t=242610)

dfb212 06-22-2014 00:41

[BUG] JailBreak Mod by Pastout
 
So, Im using Pastout`s JailBreak mod (https://forums.alliedmods.net/showthread.php?t=164224) and Im having a problem with it.

Every time a TR Kills, the kill log on the top right corner shows like it was a suicide. Instead of "Killer WEAPON Victim" it shows "WEAPON Victim" like he killed himself. (I can take a screenshot if requested) And it only happens when TR Kills, not CTs. I made a post about it on the topic of the Mod but it seems the owner has long forgotten it and I think I can solve my questions faster here.

Any help would be appreciated. Thanks! :fox:

Blizzard_87 06-22-2014 02:53

Re: [BUG] JailBreak Mod by Pastout
 
Pastout last activity was almost 5 months ago...

so i would assume he wont reply to your post in his thread...

posting a screen shot may help.

Compidence 06-22-2014 12:13

Re: [BUG] JailBreak Mod by Pastout
 
It's not a bug, it's a feature. I would assume to keep the identity of the killer a secret, so the CTs don't know who has the weapon if the killer decides to hide their weapon and rejoin the game.

PHP Code:

    // Hide Terrorist's name/give points for kill by Kruegs (soccdooccs)
    
if (get_bit(g_bIsConnectedattacker) && get_bit(g_bIsAliveattacker) && get_user_team(attacker) == 1)
    {
        if(
g_bHeadShot[attacker][victim])
        {
            
g_bHeadShot[attacker][victim] = false;
            
cs_set_user_money(attackerg_iPoints[attacker] += get_pcvar_num(cvar_pointer[cvar_headshotpoints]), 1);
        }
        else
        {
            
cs_set_user_money(attackerg_iPoints[attacker] += get_pcvar_num(cvar_pointer[cvar_killpoints]), 1);
        }
        
SaveData(attacker);
        
        
ExecuteHamB(Ham_Killedvictim0shouldgib);
        
set_pev(attackerpev_fragspev(attackerpev_frags) + 1.0);
        
        return 
HAM_SUPERCEDE;
    } 


dfb212 06-22-2014 18:23

Re: [BUG] JailBreak Mod by Pastout
 
Quote:

Originally Posted by Blizzard_87 (Post 2155444)
Pastout last activity was almost 5 months ago...

so i would assume he wont reply to your post in his thread...

posting a screen shot may help.

I know, thats why Im posting here! Its to see if others beside him can help.

Quote:

Originally Posted by Compidence (Post 2155687)
It's not a bug, it's a feature. I would assume to keep the identity of the killer a secret, so the CTs don't know who has the weapon if the killer decides to hide their weapon and rejoin the game.

PHP Code:

    // Hide Terrorist's name/give points for kill by Kruegs (soccdooccs)
    
if (get_bit(g_bIsConnectedattacker) && get_bit(g_bIsAliveattacker) && get_user_team(attacker) == 1)
    {
        if(
g_bHeadShot[attacker][victim])
        {
            
g_bHeadShot[attacker][victim] = false;
            
cs_set_user_money(attackerg_iPoints[attacker] += get_pcvar_num(cvar_pointer[cvar_headshotpoints]), 1);
        }
        else
        {
            
cs_set_user_money(attackerg_iPoints[attacker] += get_pcvar_num(cvar_pointer[cvar_killpoints]), 1);
        }
        
SaveData(attacker);
        
        
ExecuteHamB(Ham_Killedvictim0shouldgib);
        
set_pev(attackerpev_fragspev(attackerpev_frags) + 1.0);
        
        return 
HAM_SUPERCEDE;
    } 


Thank you very much! Could you help me making it disable for events and Last Requests? Enabled just for normal Kills? Thanks!

Compidence 06-24-2014 10:20

Re: [BUG] JailBreak Mod by Pastout
 
As far as events go, I found two types. One referred to as days, and others are assigned through commands, such as gungame, boxmatch and snowballwar.

Try replacing the last 3 lines in the code above with the following:

PHP Code:

if(g_iDayTOTAL_DAYS ] == DAY_NONE || !g_bGunGame || !g_bBoxMatch || !g_bSnowballWar || !g_bInLr)
{
    
ExecuteHamB(Ham_Killedvictim0shouldgib);
    
set_pev(attackerpev_fragspev(attackerpev_frags) + 1.0);
        
    return 
HAM_SUPERCEDE;


The code says, If:
1- we have a DAY_NONE which as the name implies equals no day event, just a regular round.
Or 2- It's not gungame, boxmatch or snowballball.
Or 3- No last request is taking place.

Then kill the victim and supersede the original kill event.

dfb212 06-24-2014 19:32

Re: [BUG] JailBreak Mod by Pastout
 
Quote:

Originally Posted by Compidence (Post 2156649)
As far as events go, I found two types. One referred to as days, and others are assigned through commands, such as gungame, boxmatch and snowballwar.

Try replacing the last 3 lines in the code above with the following:

PHP Code:

if(g_iDayTOTAL_DAYS ] == DAY_NONE || !g_bGunGame || !g_bBoxMatch || !g_bSnowballWar || !g_bInLr)
{
    
ExecuteHamB(Ham_Killedvictim0shouldgib);
    
set_pev(attackerpev_fragspev(attackerpev_frags) + 1.0);
        
    return 
HAM_SUPERCEDE;


The code says, If:
1- we have a DAY_NONE which as the name implies equals no day event, just a regular round.
Or 2- It's not gungame, boxmatch or snowballball.
Or 3- No last request is taking place.

Then kill the victim and supersede the original kill event.

Thank You! :fox:


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

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