Raised This Month: $32 Target: $400
 8% 

[TF2] Ghost Mode Redux (v2.2 - 1/6/14)


Post New Thread Reply   
 
Thread Tools Display Modes
rtk
Senior Member
Join Date: Dec 2009
Old 02-01-2013 , 18:16   Re: [TF2] Ghosty Mode
Reply With Quote #11

This is great. I requested it like months ago

Its almost perfect, just the ghost doesn't rotate with the camera, it would be perfect if that gets fixed

Thanks for great plugin
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-01-2013 , 18:22   Re: [TF2] Ghosty Mode
Reply With Quote #12

Quote:
Originally Posted by rtk View Post
This is great. I requested it like months ago

Its almost perfect, just the ghost doesn't rotate with the camera, it would be perfect if that gets fixed

Thanks for great plugin
Apparently you haven't tested, the ghost rotates fine.
ReFlexPoison is offline
MasterOfTheXP
Veteran Member
Join Date: Aug 2011
Location: Cloudbank
Old 02-01-2013 , 18:59   Re: [TF2] Ghosty Mode
Reply With Quote #13

Quote:
Originally Posted by ReFlexPoison View Post
I don't believe I will be able to fix Engineer buildings being destroyed once you become a ghost.
TF2_RemoveAllWeapons(iClient); is the most likely culprit. Perhaps you could add a check to remove all weapons except for wrenches.
__________________
Plugins / My Steam / TF2 Sandbox (plugin beta testing!)

Last edited by MasterOfTheXP; 02-01-2013 at 19:00.
MasterOfTheXP is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 02-01-2013 , 19:20   Re: [TF2] Ghosty Mode
Reply With Quote #14

Quote:
Originally Posted by ReFlexPoison View Post
I don't believe I will be able to fix Engineer buildings being destroyed once you become a ghost.
PHP Code:
    // strip all of this ghost's weapons
    
for ( new <= i++ )
    {
        new 
weaponEnt GetPlayerWeaponSlotclient);
        
        if ( 
weaponEnt != -)
        {
            
decl String:szClassname100 ];
            
GetEntityClassnameweaponEntszClassnamesizeofszClassname ) );
            
            if ( 
StrEqualszClassname"tf_weapon_wrench"false ) || StrEqualszClassname"tf_weapon_robot_arm"false ) )
            {
                
SetEntAlphaweaponEnt); // hide the weapon
                
                
continue; // let engineers keep their wrenches so their buildings don't go away
            
}
                
            
TF2_RemoveWeaponSlotclient);
        }
    } 
You can probably optimize and future proof this by checking the slot instead.
__________________
VoiDeD is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-01-2013 , 19:35   Re: [TF2] Ghosty Mode
Reply With Quote #15

Quote:
Originally Posted by VoiDeD View Post
PHP Code:
    // strip all of this ghost's weapons
    
for ( new <= i++ )
    {
        new 
weaponEnt GetPlayerWeaponSlotclient);
        
        if ( 
weaponEnt != -)
        {
            
decl String:szClassname100 ];
            
GetEntityClassnameweaponEntszClassnamesizeofszClassname ) );
            
            if ( 
StrEqualszClassname"tf_weapon_wrench"false ) || StrEqualszClassname"tf_weapon_robot_arm"false ) )
            {
                
SetEntAlphaweaponEnt); // hide the weapon
                
                
continue; // let engineers keep their wrenches so their buildings don't go away
            
}
                
            
TF2_RemoveWeaponSlotclient);
        }
    } 
You can probably optimize and future proof this by checking the slot instead.
Well sir, I greatly appreciate that. And thank you for the original idea for the plugin
ReFlexPoison is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-01-2013 , 20:23   Re: [TF2] Ghosty Mode
Reply With Quote #16

Updates to 1.2

I apologize for the constant updates however I knew this wouldn't be an easy plugin to perfect.

Props to VoiDeD for his above snippet.

Changes:
> Added CVar to disable destruction of Engineer buildings after death
> Added prop changed of m_bGlowEnabled so players no longer glow as a ghost
> Fixed model bugs

Last edited by ReFlexPoison; 07-12-2013 at 18:27.
ReFlexPoison is offline
rtk
Senior Member
Join Date: Dec 2009
Old 02-01-2013 , 20:56   Re: [TF2] Ghosty Mode
Reply With Quote #17

Quote:
Originally Posted by ReFlexPoison View Post
Apparently you haven't tested, the ghost rotates fine.
I can guarantee I know what I'm talking about. For me it didn't rotate along with the camera, the camera would rather orbit around the ghost just like while a player is taunting.
I have a third person plugin in the server, that is the only thing that I can imagine that could cause this... weird
__________________
Never argue with an idiot. He lowers you to his level and then wins on experience!
rtk is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 02-01-2013 , 21:12   Re: [TF2] Ghosty Mode
Reply With Quote #18

Quote:
Originally Posted by rtk View Post
I can guarantee I know what I'm talking about. For me it didn't rotate along with the camera, the camera would rather orbit around the ghost just like while a player is taunting.
I have a third person plugin in the server, that is the only thing that I can imagine that could cause this... weird
Are you sure you don't have the old version of ghostmode enabled still?

EDIT: Here's a demo.

Last edited by ReFlexPoison; 02-01-2013 at 21:21.
ReFlexPoison is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 02-01-2013 , 23:30   Re: [TF2] Ghosty Mode
Reply With Quote #19

Would be really nice if you added a !ghost command so players could just spectate if they wished.
__________________
Fearts is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 02-03-2013 , 01:45   Re: [TF2] Ghosty Mode
Reply With Quote #20

Quote:
Originally Posted by Fearts View Post
Would be really nice if you added a !ghost command so players could just spectate if they wished.
This.

Also, have it show the currently equipped hat/miscs on the ghost.
scorpadorp is offline
Reply


Thread Tools
Display Modes

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 15:40.


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