Parachute 1.3 (KRoTaL)
2 Attachment(s)
This should work on ANY Mod. Let me know if you have problems. Conversion to FAKEMETA will be coming eventually.
Press your +USE Button (defaulted to "e") to use the parachute. Code:
|
Re: Parachute 1.3 (KRoTaL)
Is there any specific reason for not using the PCvar system for all possible cases?
Also instead of reindexing the same array numerous times you could just cache the value of the given array element. |
Re: Parachute 1.3 (KRoTaL)
Nice JTP! I was using the old one on my server, so this is perfect :D
|
Re: Parachute 1.3 (KRoTaL)
There's no reason to make a fakemeta version. If you really want to, go ahead, but I can't see any reason for it.
Please do as VEN said, but for now I'm approving this. |
Re: Parachute 1.3 (KRoTaL)
1 Attachment(s)
Jtp,
Can you add please this : - parachute_free <1|0> ; Free Parachute is given to each round on all players. - parachute_sound <1|0> ; Give the possibility of adding a custom sound when one falls with the parachute (I don't know what is the best way to add a sound easily (define ? file ? cetera) ; also I attach an example) Thanks in advance :up: |
Re: Parachute 1.3 (KRoTaL)
Quote:
Also, admins with correct access level get it free each spawn aswell (though I think this should be optional as well): #define PARACHUTE_LEVEL ADMIN_LEVEL_A |
Re: Parachute 1.3 (KRoTaL)
Great plugin! +karma
|
Re: Parachute 1.3 (KRoTaL)
Quote:
|
Re: Parachute 1.3 (KRoTaL)
i guess he means
Code:
new players[32], num |
Re: Parachute 1.3 (KRoTaL)
Quote:
I'm sure ven meant well but I'm guess he only glanced at the code. Seeing as this is completely valid (as it's not used numerous times no reason to cache it): Code:
for(new a = 0; a < inum; a++) { |
Re: Parachute 1.3 (KRoTaL)
i said guess. i didn't see the code before. really sorry for that. after looking the code, i am sure VEN means this para_ent[id]. that's the same effect as the loop i post the example code.
|
Re: Parachute 1.3 (KRoTaL)
Oh in the prethink, yea i didn't look at it that way... good point.
And I guess with the pcvars he meant get_cvar_pointer first, then pcvar get in code? |
Re: Parachute 1.3 (KRoTaL)
1 Attachment(s)
Hello,
I have a small problem with the plugins parachute, when I use it with the warcraft3FT, race 1 UNDEAD lag, I can't jump any more more high and not to run more quickly. do you have a solution? Here plugins |
Re: Parachute 1.3 (KRoTaL)
1 Attachment(s)
If you want you can see if this makes any difference in performance, I made these changes for a server. Though your issues with gravity (not speed) are because this plugin changes your gravity to act as a parachute. I suppose your gravity value could be stored when you spawn to be used as your normal gravity to reset to. For the time being change weapons and see if that helps, I know it will for speed but I don't recall if gravity is also effected when doing so.
|
Re: Parachute 1.3 (KRoTaL)
I tested your plugins, the problem remains the same one, I cannot jump higher once the parachute is used
|
Re: Parachute 1.3 (KRoTaL)
Quote:
I only gave you the cause and a hint at a fix for your issue with the gravity, not a fixed version for that. And I have no idea why you think speed was effected, since you do not explain yourself very well. I asked you to try changing weapons and you said nothing of the result. I guess I could take a look into wc3ft and see how gravity is being set. |
Re: Parachute 1.3 (KRoTaL)
sorry i am french i dont all understand, you want sma wrc3?
|
Re: Parachute 1.3 (KRoTaL)
Quote:
Quote:
|
Re: Parachute 1.3 (KRoTaL)
1 Attachment(s)
Well it should not effect his speed at all something else might be causing that (and he should just be able to change weapons to get his speed back). And as I said above I could just check the users gravity before setting it for the parachute. And reset it back to the checked gravity after the player is done parachuting, though in doing this could present possible exploits (ie. map sets gravity, use parachute keep newly set gravity until death)
I did take a look in wc3 and gravity is only set on spawn for undead, but the item that you can buy gets set when you buy it (and new spawn if you didn't die), so that could be a problem as well. Though seeing as he wants it that way I could make it so it does what I said and it should fix his problem for the most part. It's not hard to change, but let me find some free time to do it in while I'm not working on an sh update. I will edit this post and post it here so as not to create a new post for it. ---------------- Edit: Ok try this and see if it helps, it checks/saves your gravity whenever you use the parachute... (also added a check against using parachute in water in this one) Untested but should be fine. |
Re: Parachute 1.3 (KRoTaL)
ok thx,
I tried to change weapon but the problem is always present, the only solution to recover gravity is to make a frag, but if one uses the parachute again the problem return. I awaits your news, they are sympathetic with you to look at |
Re: Parachute 1.3 (KRoTaL)
I test your plugins, but the problem is always present
|
Re: Parachute 1.3 (KRoTaL)
is there a bind i have to do,,because its install correctly but i had another plugin bound to e,, can someone help please
|
Re: Parachute 1.3 (KRoTaL)
Quote:
|
Re: Parachute 1.3 (KRoTaL)
Quote:
Granted I didn't test that one modified for war3ft useage, but it should work. Only other thing i could think of is to try and call the war3ft gravity func with a createforward with a small edit to war3ft (since it can't be used by include)... Quote:
|
Re: Parachute 1.3 (KRoTaL)
@Vittu:
yaya said to me on a french forum that your modification didn't work. So I decided to check myself, and after some test, it works perfectly. ;) |
Re: Parachute 1.3 (KRoTaL)
Quote:
|
Re: Parachute 1.3 (KRoTaL)
Yo What do i got to do or edit, the sma file to let everyone just have a free parachute 24/7?
|
Re: Parachute 1.3 (KRoTaL)
Please read thread it's only 2 pages: http://forums.alliedmods.net/showthr...168#post426168
|
Re: Parachute 1.3 (KRoTaL)
My bad vittu I could of sworn I read all this shit. Good Lookin Out though bud. Thanks.
So this will work in the sma or do i have to put in cvar. sv_parachute "1" - 0: disables the plugin - 1: enables the plugin parachute_cost "0" - cost of the parachute (CStrike ONLY) parachute_payback "75" - how many percent of the parachute cost you get when you sell your parachute (ie. (75/100) * 1000 = 750$) parachute_fallspeed "100" - speed of the fall when you use the parachute |
Re: Parachute 1.3 (KRoTaL)
Quote:
|
Re: Parachute 1.3 (KRoTaL)
ADMIN_USER :wink: or ADMIN_ALL ! the same....
|
Re: Parachute 1.3 (KRoTaL)
Thanks again Alka! :D
|
Re: Parachute 1.3 (KRoTaL)
now it dosent work for admin :S Maybe have to add 2 lines?
#define PARACHUTE_LEVEL ADMIN_LEVEL_A #define PARACHUTE_LEVEL ADMIN_USER |
Re: Parachute 1.3 (KRoTaL)
Of course not!You must use one of them... :roll:
|
Re: Parachute 1.3 (KRoTaL)
is there any way make it work for admin and normal players? i did try ADMIN_ALL but didnt work.
|
Re: Parachute 1.3 (KRoTaL)
Quote:
|
Re: Parachute 1.3 (KRoTaL)
yeh but so don't have to buy it
|
Re: Parachute 1.3 (KRoTaL)
Quote:
Quote:
|
Re: Parachute 1.3 (KRoTaL)
I keep seeing a few people with this error
Quote:
|
Re: Parachute 1.3 (KRoTaL)
Sorry for poor English. Guys, can't find anyone posting this problem, but I have found one. I use War3TFT mod on my server and when Undead gets levitation, you know lower gravity, so when Undead use parachute gravity seems to vanish until next respawn. It's like gravity sets to normal not back to undead gravity. Could you fix that? Thanks in advance!
|
All times are GMT -4. The time now is 20:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.