Raised This Month: $ Target: $400
 0% 

[CSS] Can not remove dropped hegrenade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 10-19-2010 , 15:49   [CSS] Can not remove dropped hegrenade
Reply With Quote #1

In GunGame plugin i have code like this:
Code:
        ent = g_ClientSlotEntHeGrenade[client];
        PrintToChatAll("client %i drop hegrenade %i", client, ent);
        if ( ent >= 0 && IsValidEdict(ent) && IsValidEntity(ent) && (GetEntDataEnt2(ent, OffsetWeaponParent) == -1 || disconnect) )
        {
            PrintToChatAll("... removing");
            RemoveEdict(ent);
        }
In chat i have
Code:
client 1 drop hegrenade 81
... removing
client 1 drop hegrenade 82
... removing
client 1 drop hegrenade 83
... removing
client 1 drop hegrenade 84
... removing
But hegrenade remains on the floor after last css update
:-\
see screenshot, i tested it with bot, but all the same with players

and even more strange behaviour, when i kick bot, last grenade disapeares from the floor, and i see in console previous entity id 0_o

and even more strange! grenades removes fine in warmup time, but there is only one chunk of code for that, and i see the same messages in chat.
they starting to stay on the floor after mp_restartgame 1. and as i can see bot does not have grenade on his belt ...
Attached Thumbnails
Click image for larger version

Name:	he.jpg
Views:	117
Size:	90.6 KB
ID:	75822  
__________________

Last edited by altex; 10-19-2010 at 16:07.
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 10-19-2010 , 17:53   Re: [CSS] Can not remove dropped hegrenade
Reply With Quote #2

Oooohhh, i understand, i just give extra nade on kill...
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 10-19-2010 , 18:00   Re: [CSS] Can not remove dropped hegrenade
Reply With Quote #3

ohh, what is the correct offset for GetSlot now? =)
__________________
altex is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 10-19-2010 , 18:05   Re: [CSS] Can not remove dropped hegrenade
Reply With Quote #4

it was
Quote:
"GetSlot"
{
"windows" "310"
"linux" "315"
}
I found that for windows it is now
Quote:
"GetSlot"
{
"windows" "311"
}
What is it for linux? 316?
__________________
altex is offline
andi67
Veteran Member
Join Date: Mar 2007
Location: Somewhere near you!!!
Old 10-19-2010 , 22:02   Re: [CSS] Can not remove dropped hegrenade
Reply With Quote #5

Quote:
314 CBaseCombatWeapon::GetSlot(void)const
Linux 315
__________________
Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
>>You need Models for DODS/CSS/CSGO , than click here!!!<<
andi67 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 20:08.


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