Raised This Month: $ Target: $400
 0% 

Items spawned by map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 06:15.


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