Talk:Ammunition: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'I think we should consider adding other ammunition from games like Left 4 Dead in here, perhaps even Alien Swarm?--~~~~') |
m (Nesciuse moved page Talk:Multipage Base Pages Temp Storage/Ammunition to Talk:Ammunition without leaving a redirect: Moving back to proper place) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
I think we should consider adding other ammunition from games like Left 4 Dead in here, perhaps even Alien Swarm?--[[User:MrFourVideoCards|MrFourVideoCards]] 11:30, 1 March 2011 (UTC) | I think we should consider adding other ammunition from games like Left 4 Dead in here, perhaps even Alien Swarm?--[[User:MrFourVideoCards|MrFourVideoCards]] 11:30, 1 March 2011 (UTC) | ||
:Sounds good to me. I looked at the CS:S ammo entities but since they are invisible they didn't seem worth listing. [[User:Thelonesoldier|Thelonesoldier]] 20:51, 1 March 2011 (UTC) | |||
How can I get ammo entities from server plugin? | |||
Posting answer I just figured out: | |||
for (int i = 0; i < pEngineServer->GetEntityCount(); ++i) | |||
{ | |||
edict_t* pEdict = pEngineServer->PEntityOfEntIndex(i); | |||
if (pEdict && StartsWith(pEdict->GetClassName(), "item_ammo_")) | |||
{ | |||
// Do your stuff | |||
} | |||
} | |||
[[User:Borzh62]] 5 July 2012 | |||
Also how can I get ammo left in current bot's weapon? [[User:Borzh62]] 17 June 2012 |
Latest revision as of 16:03, 15 July 2024
I think we should consider adding other ammunition from games like Left 4 Dead in here, perhaps even Alien Swarm?--MrFourVideoCards 11:30, 1 March 2011 (UTC)
- Sounds good to me. I looked at the CS:S ammo entities but since they are invisible they didn't seem worth listing. Thelonesoldier 20:51, 1 March 2011 (UTC)
How can I get ammo entities from server plugin?
Posting answer I just figured out:
for (int i = 0; i < pEngineServer->GetEntityCount(); ++i) { edict_t* pEdict = pEngineServer->PEntityOfEntIndex(i); if (pEdict && StartsWith(pEdict->GetClassName(), "item_ammo_")) { // Do your stuff } }
User:Borzh62 5 July 2012
Also how can I get ammo left in current bot's weapon? User:Borzh62 17 June 2012