Raised This Month: $ Target: $400
 0% 

changing user ammo. update ammo displayed on hud?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
whatisruleone
Junior Member
Join Date: May 2005
Old 05-31-2005 , 18:50   changing user ammo. update ammo displayed on hud?
Reply With Quote #1

In my plugin I have code that changes the amount of ammo that a user holds, however, the ammo displayed on the hud remains the same until the user reloads.

Is there a way to make the ammo displayed on the hud update?
whatisruleone is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 05-31-2005 , 23:18  
Reply With Quote #2

Pretty sure it's not..
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
whatisruleone
Junior Member
Join Date: May 2005
Old 06-01-2005 , 05:09  
Reply With Quote #3

O well ,thanks for replying


It is good apart from that. The split between people who think its a good idea is 50:50 as well

It is a plugin that connects the users ammo to the number of flag caps they have made. The way i acheived it is detecting the spawn event, then just after that, calculating how much, by the number of flags caps, and the score, then adjusting backpack ammo to suit.

It works great, except the ammo displayed on the HUD dosn't update until the user reloads, and there are currently to weapons it does not work for, British marksman rifle, and the scoped fg42.

Obviously there is issue with maps like charlie where the axis have no caps, but its not designed for maps like that, so it could be programmed to have no effect. The point is maps like avalanche. To leave campers who do no caps without much ammo, and encourage them to cap.


Not much point in continuing though, as majority admin vote decides if we use it and its 3:2 against.
whatisruleone is offline
Sodium
Member
Join Date: Oct 2004
Old 06-01-2005 , 05:37  
Reply With Quote #4

Yeh if you made your own sprites with it (Copy the zeros and junk.. bleh)
Sodium is offline
whatisruleone
Junior Member
Join Date: May 2005
Old 06-01-2005 , 06:38  
Reply With Quote #5

huh
whatisruleone is offline
whatisruleone
Junior Member
Join Date: May 2005
Old 06-02-2005 , 08:34  
Reply With Quote #6

I have been looking around, google can be a wonderful thing, only problem is i don't understand what i have found. even if it looks hopeful.


Would sending a message for AmmoX work?
if so how would i actully contruct the message.

I know it would use:
message_begin
write_byte
message_end

However I have only been playing with these plugins less than a month, and I don't understand how i would construct the message, or if I am barking up the wrong tree?

Edit: I have managed to get this to work for all weapons except, axis sniper, and all bazookas
whatisruleone 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 16:37.


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