Kill on location.

Post your scripting questions / solutions here

Moderator: Moderators

strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Kill on location.

Post 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. 8-)
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

spawn a trigger_multiple and have it's setthread to a thread that goes like this...

death:

parm.other kill

end
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post by strafer »

Works great lizard. Thanks a lot. :D
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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. :wink:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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 :D . It works for both AA and SH. Again, thanks a lot.
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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
OxYdO666
Corporal
Posts: 30
Joined: Wed Jul 07, 2004 5:26 pm

Post by OxYdO666 »

that only one point below the map but how make does one for proteger covers all the lower part of the map?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

get the dimensions of all the lower map and make the setsize those dimesnions.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
strafer
Captain
Posts: 237
Joined: Sat Jan 31, 2004 11:29 pm
Location: The Motherland..
Contact:

Post 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 8-) .
OxYdO666
Corporal
Posts: 30
Joined: Wed Jul 07, 2004 5:26 pm

Post by OxYdO666 »

oki ^^ thx!! :D
OxYdO666
Corporal
Posts: 30
Joined: Wed Jul 07, 2004 5:26 pm

Post 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
Post Reply