River scripting

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Daniel Radcliffe
Second Lieutenant
Posts: 168
Joined: Fri May 30, 2003 9:49 am

River scripting

Post by Daniel Radcliffe »

Hi, about a week/week and a half ago i spotted a post in a forum (unsure which forum) where there was a link to a script that when people fell in a river they would be dragged off and killed.

Does anyone know where i can find this script as i need some decent way of killing anyone that falls in my river as they will be unable to escape the river.

Thx :)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Push

Post by tltrude »

Well, for the "being pushed along" part, there is a trigger_push that will move a player as if he was caught in a strong wind. It is set at 1000 by default, so you will have to slow it down and set the direction it pushes.

For the "kill the player part" you can set another trigger (trigger_multiple) down stream. If you add key "damage" and value "200", it should kill the player when he touches it. If you want the player to die slowly, it will be a little harder.
Tom Trude,

Image
Daniel Radcliffe
Second Lieutenant
Posts: 168
Joined: Fri May 30, 2003 9:49 am

Post by Daniel Radcliffe »

OK, thx :)
ScorpioMidget
Lance Corporal
Posts: 21
Joined: Thu Jun 13, 2002 9:57 am
Location: Notts, UK
Contact:

Post by ScorpioMidget »

There are a couple of river death scripts i wrote, i believe they should still be on TMT somewhere.

One does as you say, drags u out and drowns u, other allows u to enter the river and walk around, but you die if u stay under water too long.
ScorpioMidget
Still has a soft spot for Mohaa.
Post Reply