Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-07-28 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog

War3: Source
July 27, 2010, 07:29:25 PM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Latest Releases: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Official CSS Server: 206.123.95.116:27015
Official TF2 Server: 206.123.95.119:27015
Sample Stats: http://war3source.com/war3stats

Steam Community Group: http://steamcommunity.com/groups/war3source

War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Handle knife?  (Read 36 times)
Black-Rabbit
Newbie
*
Posts: 14


View Profile Email
« on: July 21, 2010, 07:13:54 PM »

Is there a way for checking if the player handle is knife or an event about weapon change and know which one hes the new handle weapon?  Shocked
Logged
Ownz
Developer
Administrator
Sr. Member
*****
Posts: 478



View Profile WWW Email
« Reply #1 on: July 21, 2010, 07:15:52 PM »

see the race headcrab (latest version in the last few posts)
Logged

Black-Rabbit
Newbie
*
Posts: 14


View Profile Email
« Reply #2 on: July 21, 2010, 08:25:04 PM »

Thanks but I found an other way...
Logged
Black-Rabbit
Newbie
*
Posts: 14


View Profile Email
« Reply #3 on: July 21, 2010, 09:30:01 PM »

Hello back, this is my code and it do not change the invisibilty when I take knife out:

Code:
public Action:BuffCheckLoop(Handle:timer, any:target)
{
if (War3_GetRace(target)== raceID)
{
CreateTimer(1.0, BuffCheckLoop, GetClientUserId(target));

decl String:name[64];
new String:weapon[128];
GetClientWeapon(target, weapon, 128);

new skill_level = War3_GetSkillLevel(target, raceID, INVISIBILITY);
if(skill_level)
{
if (StrEqual(weapon,"weapon_knife"))
{
War3_SetBuff(target, fInvisibilitySkill, raceID, InvisibilityAlphaKnife[skill_level]);
}
else
{
War3_SetBuff(target, fInvisibilitySkill, raceID, InvisibilityAlpha[skill_level]);
}
}
}
}
Logged
[Oddity]TeacherCreature
Full Member
***
Posts: 136


View Profile
« Reply #4 on: July 21, 2010, 09:44:32 PM »

there is a setentitycolor command i used in headcrab that i cant get to work either

but perhaps that would work better for u
?
also there are events for item pick up and item use
Logged
Black-Rabbit
Newbie
*
Posts: 14


View Profile Email
« Reply #5 on: July 21, 2010, 10:01:02 PM »

Is there an event for when a player change weapon? If yes please tell me the event.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!