Raised This Month: $ Target: $400
 0% 

[BUG] JailBreak Mod by Pastout


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dfb212
Junior Member
Join Date: Jun 2014
Old 06-22-2014 , 00:41   [BUG] JailBreak Mod by Pastout
Reply With Quote #1

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!
dfb212 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 06-22-2014 , 02:53   Re: [BUG] JailBreak Mod by Pastout
Reply With Quote #2

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.
__________________
Blizzard_87 is offline
Compidence
Junior Member
Join Date: Feb 2014
Old 06-22-2014 , 12:13   Re: [BUG] JailBreak Mod by Pastout
Reply With Quote #3

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;
    } 
Compidence is offline
dfb212
Junior Member
Join Date: Jun 2014
Old 06-22-2014 , 18:23   Re: [BUG] JailBreak Mod by Pastout
Reply With Quote #4

Quote:
Originally Posted by Blizzard_87 View Post
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 View Post
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!
dfb212 is offline
Compidence
Junior Member
Join Date: Feb 2014
Old 06-24-2014 , 10:20   Re: [BUG] JailBreak Mod by Pastout
Reply With Quote #5

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.
Compidence is offline
dfb212
Junior Member
Join Date: Jun 2014
Old 06-24-2014 , 19:32   Re: [BUG] JailBreak Mod by Pastout
Reply With Quote #6

Quote:
Originally Posted by Compidence View Post
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!
dfb212 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 21:09.


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