Page 1 of 2
Kill on location.
Posted: Wed Jul 07, 2004 6:37 pm
by strafer
I am currently make mods for the stock maps and I know a lot of ways to get behind or under the map. I have been trying to script it so if you go on the spot it kills you, but I know I'm not doing it right at all. I have no idea on how to do it so if someone could help me I would appreciate it.

Posted: Wed Jul 07, 2004 7:06 pm
by lizardkid
spawn a trigger_multiple and have it's setthread to a thread that goes like this...
death:
parm.other kill
end
Posted: Wed Jul 07, 2004 7:42 pm
by strafer
Works great lizard. Thanks a lot.

Posted: Wed Jul 07, 2004 8:32 pm
by strafer
Now I have another problem

. I am trying to make it so when a person tried to get to the spot where it kills them, it will make them say something and a game message will come up and say someting. I got the game message to work, but the player doesn't say the text. Here's my script:
local.killbrush = spawn trigger_hurt "targetname" "oob1"
local.killbrush damage 100
local.killbrush.origin = ( xxx xxx xxx)
local.killbrush setsize ( xxx xxx xxx) ( xxx xxx xxx)
local.killbrush setthread kill
kill:
local.player stufftext "say I JUST TRIED TO GET BEHIND/UNDER THE MAP. PLEASE HAVE AN ADMIN BAN ME!"
iprintln "A PLAYER WAS JUST BEHIND/UNDER THE MAP AND SHOULD BE BANNED!"
end
Posted: Wed Jul 07, 2004 8:42 pm
by lizardkid
ah, i assume you're using MOH:AA and not SH or BT. in AA the trigger_hurt's don't work as they're suppsoed to, in any other version they do. ty making that a trigger_multiple and have the parm.other kill line in there before the print's.

Posted: Wed Jul 07, 2004 9:01 pm
by strafer
I tried using a trigger_multiple. The problem is I keep getting an error message in the console that says "Unknown script: param.other kill".
Also, I am planning on releasing this for spearhead and allied assault. Will this trigger work on both or will I have to use the trigger_hurt for spearhead?
Posted: Wed Jul 07, 2004 10:26 pm
by lizardkid
well maybe try volumedamage 9000 (hopefully it'll kill right off). so try this...
Code: Select all
local.killbrush = spawn trigger_multiple "targetname" "oob1"
local.killbrush damage 100
local.killbrush.origin = ( xxx xxx xxx)
local.killbrush setsize ( xxx xxx xxx) ( xxx xxx xxx)
local.killbrush setthread kill
kill:
parm.other volumedamage 10000
local.player stufftext "say I JUST TRIED TO GET BEHIND/UNDER THE MAP. PLEASE HAVE AN ADMIN BAN ME!"
iprintln "A PLAYER WAS JUST BEHIND/UNDER THE MAP AND SHOULD BE BANNED!"
end
it might work....

it's worth a try.
Posted: Wed Jul 07, 2004 10:26 pm
by Elgan
local.killbrush = spawn trigger_hurt "targetname" "oob1"
local.killbrush damage 100
local.killbrush.origin = ( xxx xxx xxx)
local.killbrush setsize ( xxx xxx xxx) ( xxx xxx xxx)
local.killbrush setthread kill
kill:
local.player=parm.other
local.player stufftext "say I JUST TRIED TO GET BEHIND/UNDER THE MAP. PLEASE HAVE AN ADMIN BAN ME!"
iprintln "A PLAYER WAS JUST BEHIND/UNDER THE MAP AND SHOULD BE BANNED!"
local.player kill
end
Posted: Thu Jul 08, 2004 12:27 am
by strafer
Thanks so much, both of you. I used a combo of both of the scripts of what you gave me and got it to work

. It works for both AA and SH. Again, thanks a lot.
Posted: Thu Jul 08, 2004 12:31 am
by strafer
Also guys, could you help me with my plane bomb? I know you looked at it lizard, but i don't think you saw my reply. I would appreciate it a lot if you helped me. Here's the link:
viewtopic.php?t=8308
Posted: Fri Jul 09, 2004 5:36 pm
by OxYdO666
that only one point below the map but how make does one for proteger covers all the lower part of the map?
Posted: Fri Jul 09, 2004 5:55 pm
by lizardkid
get the dimensions of all the lower map and make the setsize those dimesnions.
Posted: Fri Jul 09, 2004 6:47 pm
by strafer
Yeah you would be able to go under the map in spectator or in the game and go to one corner, get the coords, and then go to the opposite corner and get those coords. The only problem with that (may not be true on all maps) is that there could be a legit point on the map thats lower or just as low as the coords you get so you may die on a legit part of the map

.
Posted: Fri Jul 09, 2004 9:25 pm
by OxYdO666
oki ^^ thx!!

Posted: Thu Jul 15, 2004 1:40 pm
by OxYdO666
this script for the hunt map , i add in the script this ligne for kill player under the map!! i have modified the hunt I added grain elevator but the etant problem which one passes below the map if one is made trample by the cases!
but when one passes below one does not die! why?
Code: Select all
//////////////////////////
level waittill spawn
//////////////////////////
local.killbrush = spawn trigger_hurt "targetname" "oob1"
local.killbrush damage 100
local.killbrush.origin = ( -560 -1752.79 -511.88 )
local.killbrush setsize ( 9999 9999 -511.88 ) ( -9999 -9999 0 )
local.killbrush setthread kill
kill:
local.player=parm.other
local.player stufftext "say I JUST TRIED TO GET BEHIND/UNDER THE MAP. PLEASE HAVE AN ADMIN BAN ME!"
iprintln "A PLAYER WAS JUST BEHIND/UNDER THE MAP AND SHOULD BE BANNED!"
local.player kill
end