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

Changing clip and backpack ammo in Half-Life


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Silencer123
Veteran Member
Join Date: Jul 2006
Old 06-06-2009 , 21:41   Changing clip and backpack ammo in Half-Life
Reply With Quote #1

Yes... how would one go on about that?

For Team Fortress, Day of Defeat, Natural Selection, of course for Counter-Strike, and even for the uncommon mod The Specialists there are appropriate modules which provide the functions. But Half-Life, which is the incarnation of standard and default seems to have no support for this at all.

If I am just blind please direct me to the right direction.

Untill then...
Code:
    static wpnid;     static clip;     static ammo;     wpnid = get_user_weapon(id, clip, ammo);         static weapname[33];     get_weaponname(wpnid , weapname , 32);     static wpn;     wpn = -1;         while((wpn = engfunc(EngFunc_FindEntityByString, wpn, "classname", weapname)) != 0) {         if(id == pev(wpn, pev_owner)) {             // Insert magic here             break;         }     }
__________________
EAT YOUR VEGGIES
Silencer123 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 11:25.


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