Custom ammo system: your opinion is needed!
#10

Thanks for your feedback. Didnt expect such a good reaction to be honest
So I think I will do this.

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
I see a few minor issues with this. To keep a weapon from reloading you need to give the player the same weapon (GivePlayerWeapon), unfortunately this bugs the rocket launcher and makes it semi-automatic. To determine if a player has lost ammo you need a constant check of GetPlayerAmmo, unfortunately it only updates every few seconds, so you won't know if they've shot enough round until it's too late
Right, this is a problem. I found out the ammo of GetPlayerAmmo updates everytime when on a client update when OnPlayerUpdate is called. And when you are shooting it seems to stop updating, or at least to slow down. So you cant really use this to detect when the player has to reload.
But I built another solution for this already several months ago, which allows me to detect exactly where and when a player shoots. So I could easily add this ammo system to it, would basically just be a set of variables and some checks.
By the way, this is also the reason why Im not going to release it. I dont want to release that detection system, so no one could use that released ammo system.
To the rocket launcher: this might be a real problem, I havent tested the rocket launcher enough yet, so I do not know if my solutions for this might work. I the worst case I will have to leave out these weapons. They do not have clips anyways, so this would just be a minor problem.

@Donya: This is basically what my first idea was, but as I stated above, the weapon_rate seems not to influence GetPlayerAmmo in the way we would need it.

Edit: @Mark_Weston: Hehe ok, ill announce it when it is running
Reply


Messages In This Thread
Custom ammo system: your opinion is needed! - by Mauzen - 16.06.2011, 15:57
Re: Custom ammo system: your opinion is needed! - by seanny - 16.06.2011, 16:30
Re: Custom ammo system: your opinion is needed! - by Michael@Belgium - 16.06.2011, 16:31
Re: Custom ammo system: your opinion is needed! - by Max_Coldheart - 16.06.2011, 16:37
Re: Custom ammo system: your opinion is needed! - by xRyder - 16.06.2011, 16:38
Re: Custom ammo system: your opinion is needed! - by Cameltoe - 16.06.2011, 16:53
Re: Custom ammo system: your opinion is needed! - by Donya - 16.06.2011, 18:31
Re: Custom ammo system: your opinion is needed! - by MWF2 - 16.06.2011, 19:41
Re: Custom ammo system: your opinion is needed! - by Joe Staff - 16.06.2011, 21:29
Re: Custom ammo system: your opinion is needed! - by Mauzen - 16.06.2011, 22:32

Forum Jump:


Users browsing this thread: 1 Guest(s)