Raised This Month: $ Target: $400
 0% 

does cs_get_weapon_burst(index) work?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
[FBX]
Senior Member
Join Date: May 2004
Old 06-07-2004 , 04:22   does cs_get_weapon_burst(index) work?
#1

I've tried this and it seems to return 0 for all data types regardless of anything.
[FBX] is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 06-07-2004 , 05:01  
#2

If it don't work then just make up a stock to do detection capturing the text message of Switched To Burst Fire (something like that)
T(+)rget is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 06-07-2004 , 05:18  
#3

hehe Target i dont think that many people know how to make modules and stocks.
__________________
QwertyAccess is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-07-2004 , 05:30  
#4

Quote:
/* Returns 1 if specified weapon is in burst mode.
*/
native cs_get_weapon_burst(index);
Johnny got his gun is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 06-07-2004 , 05:59  
#5

He said that wasn't work Johnny
T(+)rget is offline
[FBX]
Senior Member
Join Date: May 2004
Old 06-07-2004 , 08:13  
#6

the function itself doesnt even make sense. The description says it wants the ID of the gun... soo with one argument how does it know the person? When you use the person as the ID it returns zero for every gun in your hand. When you use multiple arguments (which for some reason compiles) you crash your server
[FBX] is offline
T(+)rget
Senior Member
Join Date: Mar 2004
Old 06-07-2004 , 08:25  
#7

I don't get what you trying to do [FBX]

All cs_get_weapon_burst(index) is suppose to do is return 0/1 depending if the ID has Burst Fire enabled or not.

Edit:
Ah I see what you mean now, yeah that doesn't make sense
Johnny fix you code

Just get the weapon id automactically from player id, require less coding then for scriptors. Doubt if many people are gonna check for burst mode on weapons lying around on the ground.
T(+)rget is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-07-2004 , 09:52  
#8

? You shuold do just like you say
Quote:
"The description says it wants the ID of the gun... "
So just send the index of the gun you want to check, and bang there is your result. If someone is holding the gun is irrelevant.

The burstmode setting is NOT a setting of a player, but rather a setting of a weapon. That's why it says you should supply the index of a weapon, not a player. A person cannot be in burst mode :-D

But I agree, I so far don't see why anyone would use this. However since I found it I thought it'd be a waste to not make something out of it. So far I made a native of almost every cs-specific setting I know how to change. You never know what crazy use crazy people have for stuff like this in their crazy plugins...
Johnny got his gun is offline
ts2do
Senior Member
Join Date: Mar 2004
Old 06-07-2004 , 10:31  
#9

use something like find_ent_by_owner(0,"weapon_galil",id) to find the weapon id
__________________
ts2do is offline
Send a message via AIM to ts2do
BAILOPAN
Join Date: Jan 2004
Old 06-07-2004 , 13:00  
#10

Quote:
So far I made a native of almost every cs-specific setting I know how to change.
Try to find something that gives peoples the old awp behaviour back
__________________
egg
BAILOPAN is offline
Closed Thread



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 14:49.


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