Damage from barbwire

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Dave
Private
Posts: 6
Joined: Thu Apr 15, 2004 6:52 pm

Damage from barbwire

Post by Dave »

Not sure if this is a mapping or scripting issue, but here goes....

Have simple map and have put in some barbwire. Have managed to configure this to do damage to the player, but if you're daft enough to let yourself be killed by it the message in MOH comes up mentioning 'cratered'.

Any hints on how I change the kill message that comes up?

Thanks
Dave

[S.E.C.S]=Bobby_Bad_Boy
www.secs-clan.co.uk
Yarik
General
Posts: 1031
Joined: Thu Jan 09, 2003 7:12 pm
Contact:

Post by Yarik »

I think there is a way to do it by making a localization. But Other then that I guess you will have to wait for our elite scripters to come in and take over the topic. Sorry if I didnt help much.
Skype: Yarik_usa
www.skype.com <---free pc2pc phone
Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Localization is one way , also I think using a message/value for the trigger would do it only if it kills you instantly...
Image
crunch
Major
Posts: 348
Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:

Post by crunch »

Von and I used this simple little script that he wrote to hurt a the player when running into barbed wire.
The death message is "You killed yourself" and in red, "[name of player] died"

barbwire:
//called by trig_multis in bsp.
//Goal inflicting damage to players who run into the barbwire
local.poorboy = parm.other
local.poorboy damage local.poorboy 5 local.poorboy (0 0 0) (0 0 0) (0 0 0) 1 9 0 0
end





This takes 5 health every second, so dead in 20 seconds if staying in contact.
Image
Dave
Private
Posts: 6
Joined: Thu Apr 15, 2004 6:52 pm

Post by Dave »

Great, thanks for the quick replies.

Dave
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

if you do local.poorboy hurt 5 I think it just says "died"
Image
Post Reply