Hold That (grenade)

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

Hold That (grenade)

Post by Firefox »

I'm trying to figure out a way to add a huddraw to your screen that says "Hold That" when you get killed by someone else's grenade.

I want this to be server side, any ideas?
Image
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

Also...

Post by Firefox »

Also, is there iprint command or something like that that online displays to on player?

I would like to have a message appear whenever the player throws a grenade, but the message appears only to that play.

would

Code: Select all

local.player commanddelay 1 iprint "blahblah" 1
work?
Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

That would probably work yes, though if possible I would replace the commanddelay with just a wait 1 :) .
Image
User avatar
Firefox
Colour Sergeant
Posts: 90
Joined: Sun May 07, 2006 3:23 pm
Location: USA
Contact:

Post by Firefox »

Okay, and do you know where do you think I could put a

Code: Select all

first exec mysciprt.scr
So that when you get killed by a grenade that it will execute this script?
Image
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Look in global/mike_torso.st for a state that's called KILLED_GRENADE or something like that.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply