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

Block rotating door when it's touched by a Weapon


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-19-2010 , 03:27   Re: Block rotating door when it's touched by a Weapon
Reply With Quote #41

Quote:
Originally Posted by Alucard^ View Post
* About find_ent_by_owner( ), you mean that i should replace GetWeaponboxType( ) with find_ent_by_owner( )?
The point is that you loop trough all entities on map and checking owner while find_ent_by_owner does that for you

And actually GetWeaponboxType looks bullshit o.0 because you return weaponid if first found entity matching owner
__________________
xPaw is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 06-20-2010 , 03:48   Re: Block rotating door when it's touched by a Weapon
Reply With Quote #42

Quote:
Originally Posted by xPaw View Post
The point is that you loop trough all entities on map and checking owner while find_ent_by_owner does that for you

And actually GetWeaponboxType looks bullshit o.0 because you return weaponid if first found entity matching owner
Ok, now i understand...

And GetWeaponBoxType( ) is not mine xd i don't know where i get that stock...

Well, i will update the thing about find_ent_by_owner( ). Thanks.

EDIT: Now i remember, the GetWeaponBoxType( ) stock is from fakemeta_util.inc i just only converted to engine.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...

Last edited by Alucard^; 06-20-2010 at 03:51.
Alucard^ is offline
Send a message via Skype™ to Alucard^
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 05:13.


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