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

[REQ] get_user_weapon make clip and ammo optional


  
 
 
Thread Tools Display Modes
Author Message
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 01-30-2007 , 02:43   [REQ] get_user_weapon make clip and ammo optional
#1

I think it would be nice if the last parameters, clip and ammo, of get_user_weapon were optional. I've seen many times where the clip and ammo parameters are not used or needed but must be retrieved.

change to optional:
get_user_weapon ( index, [&clip, &ammo] )



This change would be in the similar fashion of how get_user_attacker works, where weapon and hitzone are optional.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-10-2007 , 05:35   Re: [REQ] get_user_weapon make clip and ammo optional
#2

I second this motion. If this is comitted, don't forget to take a look at the mod-specific functions such as ts_getuserwpn as well.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-10-2007 , 16:16   Re: [REQ] get_user_weapon make clip and ammo optional
#3

Bleh, didn't notice avalanche's post when I committed vittu's. (Rev 3306)
sawce is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-10-2007 , 16:38   Re: [REQ] get_user_weapon make clip and ammo optional
#4

I'm not too familiar with the non-NS mod packages, but the only natives I could find that needed changed were dod_get_user_weapon() and ts_getuserwpn()

If I missed any make a new thread for them.

Revision 3307

Last edited by sawce the snail; 02-10-2007 at 16:41.
sawce 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 03:50.


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