is stealth [message #471583] |
Fri, 13 July 2012 10:13 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
the function Is_Stealth(GameObject *obj)
only checks if the object really is stealth at that moment isnt there a check if someone has stealth activated?
edit :
fixed it had to write a new funtion but it got it done
Owner of kambot TT server
kambot.freeforums.org
[Updated on: Fri, 13 July 2012 10:19] Report message to a moderator
|
|
|
|
Re: is stealth [message #471591 is a reply to message #471583] |
Fri, 13 July 2012 10:30 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
i tried to use
->Is_Stealth_Enabled();
but it gives unresolved external symbol
there is a function for soldiers but i need a check for both of em
so i actually didnt fix it
Owner of kambot TT server
kambot.freeforums.org
|
|
|
Re: is stealth [message #471633 is a reply to message #471583] |
Fri, 13 July 2012 15:47 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma: 1
|
Colonel |
|
|
Is_Stealth_Enabled was added in beta 5 and is what you want, however it seems to be broken and only works for soldiers. You can try SmartGameObj::Is_Stealth_Enabled instead, except it isn't exported. Try adding the following to your plugin and see if it works.
bool SmartGameObj::Is_Stealth_Enabled()
{
return StealthEnabled;
}
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
[Updated on: Sat, 14 July 2012 03:59] Report message to a moderator
|
|
|
Re: is stealth [message #471634 is a reply to message #471583] |
Fri, 13 July 2012 15:51 |
robbyke
Messages: 348 Registered: September 2010 Location: Belgium
Karma: 0
|
Recruit |
|
|
so if i would add it into my plugin it will work? seems weird
and yes i found that but i never knew i could just copy paste it into my plugin
edit :
ok that totally doesnt work
Owner of kambot TT server
kambot.freeforums.org
[Updated on: Fri, 13 July 2012 15:55] Report message to a moderator
|
|
|