[L4D] Swimming
Like the title says, I'm pretty sure this is possible but I'm clueless so IDRK but, like in TF2 while you are in water you are able to swim up or down. Maybe someone could add somthing similar to that for L4D? Yeah yeah I know, barely any maps have enough water neck high but, I'm making a map filled with water, and going through it to the saferoom. Allow you to swim up or down would be really useful.
|
Re: [L4D] Swimming
Survivors cannot swim? I mean i never tried to swim in l4d there are not any maps with enough water. What usually happens if they go into deep water?
|
Re: [L4D] Swimming
Here's some example, hope it will help. This will set movetype to fly (not noclip) whenever you press Secondary attack. Press it once more and you will return to default MOVETYPE. Take a note that you may need to fully stop, before you can return to default MOVETYPE.
You can use this as a base. I suggest you check following FLAGS and what they do and if they works. #define FL_INWATER (1 << 9) // In water #define FL_FLY (1 << 10) // Changes the SV_Movestep() behavior to not need to be on ground #define FL_SWIM EDIT: It seems its just information flags and they not affecting actual game (pretty much like event). When player is in water he have INWATER flag etc. You can check these flags and if he is in vater you can set clients move type (though i dont know if FLY is right movement type for swimming). EDIT 2: Almost forgot you need SM 1.3 to use OnPlayerRunCmd function. PHP Code:
|
Re: [L4D] Swimming
alright k ill try it out and no once you go in deep enough water, wen on surface you either hold ur jump button but u move really slowly, staying above survive, or slowly float to the bottom and walk along the dirt...
|
Re: [L4D] Swimming
Quote:
|
Re: [L4D] Swimming
They stripped that out to put it in l4d2 ;)
Good work btw |
Re: [L4D] Swimming
Quote:
|
| All times are GMT -4. The time now is 03:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.