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

Items spawned by map


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Misery
Senior Member
Join Date: Dec 2010
Old 06-24-2012 , 07:57   Items spawned by map
Reply With Quote #1

Hi,

I would like to know (it's probably a hard one...), is it possible to get the weapons spawned by the map itself?
I will explain... for example on aim_ak-colt (cstrike) or awp_map (cstrike) or even deathrun maps (cstrike), there are weapons the user can pick, which are part of the map.
For example on aim_* maps user is spawned near these, buy is restricted an he can pick them...

I was wondering, is there a way to know, for example into hook of CBaseEntity::Touch() (I use this so I can detect weapon pickups and get both player ids and weapon ids), if the picked weapon is actually an item spawned by the map?

Something like...

Code:
OnTouchWeapon(id, weaponid)
{
        if (isWeaponFromMap(entity_of_weapon_or_something))
                     bla bla bla
}
Get the idea? Is that possible?

Please help, greatly appreciated!
Thanks!

Cordially,
Misery
Misery is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 06-24-2012 , 08:26   Re: Items spawned by map
Reply With Quote #2

Weapon entities spawned by the map will have there classname be amoury_entity
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.

Last edited by hornet; 06-24-2012 at 09:10.
hornet 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 23:36.


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