PDA

View Full Version : Realchute - Ya, another parachute plugin


Vet
04-10-2008, 07:21 PM
UPDATED 4/11/08 - 2:15pm CDT

This is another parachute plugin. I feel this one provides a lot more realism than most other parachute plugins I've seen.
-------------------------------------------------------------------
Primary differences:
1) You must use the command ripcord to deploy your parachute (not the USE key). Most players bind a key to the command (ex: bind "x" "ripcord").
2) Its a one shot parachute. Once you pull the ripcord, you're committed. No more detaching, repacking redeploying etc.
3) You must be 'catching air' for the chute to deploy. Otherwise it will malfunction.
4) It uses a model named realchute.mdl. The model must be in the dod/models/ folder. The model provided is common one. But I scribbled out the gayass 'Whee I'm flying'.

See THIS THREAD (http://www.dodplugins.net/forums/showthread.php?t=1213) for more info.

User Commnads:
ripcord - starts the parachute deployment
say /chute - reports the status of YOUR chute
say /chutes - reports the status of the plugin

Admin Command:
amx_realchute <0|1|2|?> (command access level 'h' required)
0 - Plugin disabled
1 - Plugin enabled, 1 chute per life (default)
2 - Plugin enabled, unlimited chutes
? - Command help

CVar:
realchute_ctrl <0|1|2> (see above)
---------------------------------------------------------------------
ps, it also runs on CS

Enjoy

UPDATED 4/11/08 - 2:15pm CDT
Added fullupdate command protection (Thanx Wilson).

Wilson [29th ID]
04-11-2008, 08:41 AM
Vet, looks great. You should consider packaging the model I used in DoD Paratrooper (http://dodplugins.net/forums/showthread.php?t=173) as it's actually not only removed the text but reskinned to be WWII accurate (beige not green) :P

By the way, typing "fullupdate" in the console will probably give you another chute here as you've hooked ResetHUD to give a chute, and fullupdate activates that. You should use dod_client_spawn() instead.

Keep up the good work m8 - this one blows the one I made away realism wise.

Vet
04-11-2008, 12:16 PM
Ya, I DO use your chute model on the plugin we use on our server. Your chute is definately more realistic for DOD. I have another version of this plugin that gives the player a different chute depending on what team your on. Kinda neat, and only takes a few more lines of code.

I'm not familiar with 'fullupdate' at all. Guess I'll have to do a little research.

I used the older spawn detect method mainly so it would work with other mods (like CS). Maybe I should just do a separate plugin for each.

Thanks for the input.

Wilson [29th ID]
04-11-2008, 01:46 PM
The most compatable way would be to keep it how it is, then register_clcmd for FullUpdate and block it..or set a global boolean when it's executed and unset it a second later, and check the boolean before proceeding with the code in the player_spawn function

Vet
04-11-2008, 03:05 PM
Good idea. I can't believe that after all this time of writing plugins that I didn't know anything about the fullupdate exploit. Guess I got some work to do.

Vet
04-13-2008, 12:28 PM
BTW, using the HamSandwich forward:
RegisterHam(Ham_Spawn, "player", "player_spawn", 1)
to detect player spawning seems to work pretty well. I noticed that when using a simple 'fullupdate block', it affects demos somewhat. So maybe Ham is a better alternative.

Hood [10th MD]
04-14-2008, 11:27 PM
that's awesome!
bind e "+use; ripcord" ftw!

great work, no more cheating to make small jumps down stairs silent.

Unleashed108
06-02-2008, 08:21 AM
is there anyway that you can attach a plugin, that gives you a bar down the bottom or something, that can reload the chute? so you can jump several times after lets say 30sec or something? Might be hard but just a suggestion :confused:

Vet
06-02-2008, 12:17 PM
It could be done without too much trouble. If anything, I thought about freezing the player (unable to move or shoot) for 30 sec. while he was repacking.

But when you think about it, many times, players don't get the opporitunity to use their chute at all, let alone multiple times. And, in the interest of preserving some degree of realism, I figure the typical soldier wouldn't have a clue as to HOW to repack a chute. So for now, I plan on leaving it like it is. But you're certainly welcome to modify the code to do that.

diamond-optic
06-02-2008, 02:28 PM
dont soldiers usually pack their own chutes tho...

tho i would agree that its probably totally unrealistic that a soldier would land and repack their chute and go into battle with it lol

Unleashed108
06-03-2008, 04:28 AM
now that i think about it your right, this is good, only if it was available for dod 1.3