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

[TF2] Uber Effect without Godmode?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Steveh
Member
Join Date: Oct 2010
Old 07-26-2011 , 02:50   [TF2] Uber Effect without Godmode?
Reply With Quote #1

Hi, I was wonder how you would do the Uber Effect on a Player, but remove Godmode from them. I tried using TF2_AddCondition, and SetEntProp to remove GodMode from them, however It did not work.

Steveh
Steveh is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-26-2011 , 07:47   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #2

The uber effect is a different skin iirc. You may want to try setting the skin
Afronanny is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 07-26-2011 , 08:17   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #3

Quote:
Originally Posted by Afronanny View Post
The uber effect is a different skin iirc. You may want to try setting the skin
Yhep, it is.
Set their skin (m_iSkin, iirc) to 3 for RED uber and 4 for BLU uber.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
Steveh
Member
Join Date: Oct 2010
Old 07-26-2011 , 09:24   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #4

Thanks very much for the replies guys

Would I use SetEntProp with Prop_Data to do so? or would I use Prop_Send?

Steveh
Steveh is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-27-2011 , 23:23   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #5

It's a sendprop, and the name of the prop is m_nSkin
Afronanny is offline
Steveh
Member
Join Date: Oct 2010
Old 07-28-2011 , 04:26   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #6

Thanks so much!
Steveh is offline
kim_perm
Member
Join Date: Sep 2007
Location: Perm, Russia
Old 10-10-2011 , 14:16   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #7

can't understand, what I'm do wrong?

PHP Code:
#include <sourcemod>

public Plugin:myinfo 
{
    
name "test uber",
    
author "kim_perm ",
    
description "test uber skin",
    
version "1.0",
    
url "game.perm.ru"
}

public 
OnPluginStart()
{
    
RegAdminCmd("sm_testuber"CmdTestADMFLAG_ROOT);
}

public 
Action:CmdTest(clientargs
{
    
SetEntProp(clientProp_Send"m_nSkin"GetClientTeam(client) + 1);
    
PrintToConsole(client"Command ok!");
    return 
Plugin_Handled;

And it's not work
kim_perm is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 10-10-2011 , 14:40   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #8

Because it isn't Team+1. But Team+2.
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline
kim_perm
Member
Join Date: Sep 2007
Location: Perm, Russia
Old 10-10-2011 , 21:59   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #9

Quote:
CS:S also has the teams as the constants CS_TEAM_NONE, CS_TEAM_SPECTATOR, CS_TEAM_T, and CS_TEAM_CT.

TF2 does not have constants for teams, but as I recall, the teams match up to CS:S's teams:
0 = teamless (as for most of games)
1 = spectators (as for most of games)
2 = RED
3 = BLU
And anyway +2 not work too.
kim_perm is offline
Monkeys
Veteran Member
Join Date: Jan 2010
Old 10-10-2011 , 22:11   Re: [TF2] Uber Effect without Godmode?
Reply With Quote #10

Ah, k. Any error messages?
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys 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 02:56.


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