Raised This Month: $32 Target: $400
 8% 

Real Weapon Weight 0.7


Post New Thread Reply   
 
Thread Tools Display Modes
AlexBreems
Member
Join Date: Feb 2008
Old 06-24-2008 , 01:45   Re: Real Weapon Weight 0.7
Reply With Quote #11

The Shield cannot be defined on get_user_weapon It does not have index
__________________
AlexBreems is offline
shine771
Senior Member
Join Date: Jun 2007
Old 06-24-2008 , 11:25   Re: Real Weapon Weight 0.7
Reply With Quote #12

But doesn't it show up in get_user_weapons..? 0 is an index too.. If you have shield and an usp in hands, i think, get_user_weapon would return Usp's index.
shine771 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-24-2008 , 16:49   Re: Real Weapon Weight 0.7
Reply With Quote #13

f(equal(classname[0],"w") && equal(classname[3],"p") && equal(classname[5],"n") && equal(classname[6],"_"))

->

if(classname[0] == 'w') && classname[3] == 'p') && classname[5] == 'n') && classname[6] == '_'))


Also : for get_user_weapon() , you can remove clip/ammo since with amxx 1.8, it's now optionnal.
__________________

Last edited by Arkshine; 06-24-2008 at 16:52.
Arkshine is offline
AlexBreems
Member
Join Date: Feb 2008
Old 06-25-2008 , 02:23   Re: Real Weapon Weight 0.7
Reply With Quote #14

Quote:
Originally Posted by shine771 View Post
But doesn't it show up in get_user_weapons..? 0 is an index too.. If you have shield and an usp in hands, i think, get_user_weapon would return Usp's index.
http://wiki.amxmodx.org/CS_Weapons_Information
__________________
AlexBreems is offline
shine771
Senior Member
Join Date: Jun 2007
Old 06-25-2008 , 07:52   Re: Real Weapon Weight 0.7
Reply With Quote #15

I was using that table to make maxspeed DIFF... so what do you want to say with that? I didn't see a weapon with an index 0 there.. so shield probably is INDEX 0 - and 0 is an index too...isn't it? Do you want to say that shield wouldn't appear using get_user_weaponS?
shine771 is offline
AlexBreems
Member
Join Date: Feb 2008
Old 06-25-2008 , 09:00   Re: Real Weapon Weight 0.7
Reply With Quote #16

Quote:
Originally Posted by shine771 View Post
I was using that table to make maxspeed DIFF... so what do you want to say with that? I didn't see a weapon with an index 0 there.. so shield probably is INDEX 0 - and 0 is an index too...isn't it? Do you want to say that shield wouldn't appear using get_user_weaponS?
The Shield cannot be defined on get_user_weapons too as get_user_weapon
__________________
AlexBreems is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-25-2008 , 10:06   Re: Real Weapon Weight 0.7
Reply With Quote #17

I don't recommend using Ham here, I would get rid of the PlayerSpawn use an event and as for the weapon pudate, use FM_Spawn.
Styles is offline
Send a message via AIM to Styles
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-25-2008 , 10:30   Re: Real Weapon Weight 0.7
Reply With Quote #18

It's perfectly fine like that. It's more efficient this way ( even I would use another ham forward ) and I don't see why he should not use Ham.

Even if it's possible to not use Ham, for such plugin it's up to the author's preference.
__________________

Last edited by Arkshine; 06-25-2008 at 10:33.
Arkshine is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-25-2008 , 11:41   Re: Real Weapon Weight 0.7
Reply With Quote #19

Quote:
Originally Posted by arkshine View Post
It's perfectly fine like that. It's more efficient this way ( even I would use another ham forward ) and I don't see why he should not use Ham.

Even if it's possible to not use Ham, for such plugin it's up to the author's preference.
Heh, it makes it more compatible with earlier versions of AMXX. Thats why I would use it and since where not hooking anything that we need to change.

idk.. w/e
Styles is offline
Send a message via AIM to Styles
Rvargas
Junior Member
Join Date: Jul 2008
Old 07-11-2008 , 09:37   Re: Real Weapon Weight 0.7
Reply With Quote #20

Can't download
Rvargas 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 05:19.


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