regen help
i'm pretty sure this works but ingame, nothing happens...
what i'm trying to do is have an armour regen which regens ur armour every 4 seconds, and everyone 4 seconds it regens 7 ap with a .wav and the screen having a teal hud (the precaching part wouldn't be needed to show as i know it will work) Code:
|
Re: regen help
You could try:
Code:
What I changed was: Code:
And with: Code:
|
Re: regen help
cheers man, works now
the max regen limit was 100, i might set it lower like 75 a bug i found was if you had 97 armor it would regen it to 104 but then it will go back to 100 for the next regen time but i don't mind this bug |
Re: regen help
Code:
This will eliminate that bug. It will check if the new ap value is over 100, and if it is, will set it back to 100. So armor will never go past 100. |
Re: regen help
thxs man, works nicely
it compiles with no errors, what i want to do is only regen above 20ap so if my armor is 15, it stops the regen i'm not the best scripter so just do a little check of it as i can't be fucked getting shot down to less than 20ap just to see if it works (there was this cool plugin where it drains ur armor first than your health so its like you have 200 hp, i'm trying to do that but having errors, i'll post it later) Code:
|
Re: regen help
Code:
That should do it, but I think it will keep saying "Your armor can't recharge now" every 4 secs. |
Re: regen help
thxs man
i just found another bug with the script in some maps like aim_sk_ak_m4, you're stripped with nothing and then it equips you with crap you always have 0ap at every new round and the msg pops up but this happens 2/5 of the time i was think if it is possible to do something like Code:
EDIT nvm... that just made it worse... a few post ago you said that the msg will come up every 4 second yeah, it does when you have less than 20ap |
| All times are GMT -4. The time now is 07:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.