Text Message display after death

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
sirkilroy
Lance Corporal
Posts: 22
Joined: Thu Feb 13, 2003 11:55 pm
Location: Indy
Contact:

Text Message display after death

Post by sirkilroy »

I have my script working for drowning a player when he falls into the ocean.
But when the player dies it just sends
"Player" blew up!!!
I would like to say something else!!, BUT HOW do you do that?

Here is what I have setup

I have it set up as follows
trigger_multiple (around the area I want to kill)
delay/20
targetname/hurtme
setthread/pain
wait/1

then the script added to the scr file (after the 'level waittill spawn')

pain:
$hurtme volumedamage 15
end
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

i dont know if this will work in your case, but you can try setting a meansofdeath. for example:

$hurtme meansofdeath crush
sirkilroy
Lance Corporal
Posts: 22
Joined: Thu Feb 13, 2003 11:55 pm
Location: Indy
Contact:

Post by sirkilroy »

thanks I will give it a try
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

actually, im wrong you'd have to give numerical values for it... here they are:

Code: Select all

// Means of death values:
// 0	MOD_NONE,
// 1	MOD_SUICIDE,
// 2	MOD_CRUSH,
// 3	MOD_CRUSH_EVERY_FRAME,
// 4	MOD_TELEFRAG,
// 5	MOD_LAVA,
// 6	MOD_SLIME,
// 7	MOD_FALLING,
// 8	MOD_LAST_SELF_INFLICTED,
// 9	MOD_EXPLOSION,
// 10	MOD_EXPLODEWALL,
// 11	MOD_ELECTRIC,
// 12	MOD_ELECTRICWATER,
// 13	MOD_THROWNOBJECT,
// 14	MOD_BEAM,
// 15	MOD_ROCKET,
// 16	MOD_IMPACT,
// 17	MOD_BULLET,
// 18	MOD_FAST_BULLET,
// 19	MOD_VEHICLE,
// 20	MOD_FIRE,
// 21	MOD_FLASHBANG,
// 22	MOD_ON_FIRE,
// 23	MOD_GIB,
// 24	MOD_IMPALE,
// 25	MOD_BASH,
// 26	MOD_TOTAL_NUMBER
Valoche
Lance Corporal
Posts: 13
Joined: Thu Feb 20, 2003 6:48 pm

Post by Valoche »

Cool,

You could also add to your pain thread this line:
parm.other stufftext say Help ! I can't swi-blop-blop-blop !!!
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post by Alcoholic »

lmao :lol:
sirkilroy
Lance Corporal
Posts: 22
Joined: Thu Feb 13, 2003 11:55 pm
Location: Indy
Contact:

Post by sirkilroy »

Thanks Again.

I am going to try both and see which works the best
Post Reply