Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 7 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 MP Mapping
CoD 2 mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: making a place where you die
ricardos
General Member
Since: Aug 23, 2007
Posts: 191
Last: Dec 24, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 25, 2007 03:50 pm
i've made an elevator and here's a pic:

now i want that people dont let the elevator get stuck thats anoying so i saw in another map that if u stand on top of the elevator and u go up and ur between the 2 things u die .
and if u go in the lift place while the lift is up youre dieing too.
and i've got a palmtree and from a building you can jump onto it but how can i make people die if they jump on it?
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 25, 2007 06:11 pm
You can place trigger_hurt 's which do damage to a player when they touch it. You should be able to move the trigger along with the elevator as wel, either by linking it to the elevator or by moving it up/down along with the elevator.
Share |
ricardos
General Member
Since: Aug 23, 2007
Posts: 191
Last: Dec 24, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 25, 2007 08:49 pm
thanks[lol]
Share |
Ganonspuppet
General Member
Since: Jun 13, 2007
Posts: 17
Last: Feb 24, 2008
[view latest posts]
Level 1
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 25, 2007 09:19 pm
Or, if that is too hard, just make a kill switch, in the elevator roof shaft, not in the elevator itself...but in the shaft, so if they get on top of the elevator, as the ygo up, when they hit the top of the shaft they die. But make it thin so u can stand in he elevator and jump and die...
Share |
ricardos
General Member
Since: Aug 23, 2007
Posts: 191
Last: Dec 24, 2008
[view latest posts]
Level 4
Category: CoD2 MP Mapping
Posted: Saturday, Aug. 25, 2007 11:23 pm
yes thats what mp_sevatopol has. im going to do that.
but i really dont know how to make a kill switch :O
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD2 MP Mapping
Posted: Sunday, Aug. 26, 2007 07:13 am
kill switch = trigger_hurt.
Set the dmg value to 1000, that will kill instantly on touch.
Share |
Sevenz
General Member
Since: Apr 24, 2006
Posts: 2390
Last: May 10, 2013
[view latest posts]
Level 8
Category: CoD2 MP Mapping
Posted: Sunday, Aug. 26, 2007 05:12 pm
and how to push people away instead of killing or force to crouch position before crushing?
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Sunday, Aug. 26, 2007 05:26 pm
You in a script can make the playe go crouch the second he hits a trigger, kinda like the no prone mod, but reall you could call this a no stand mod. Let me see if i can edit the no prone script!
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
playername
Preferred Member
Since: Aug 24, 2006
Posts: 821
Last: Apr 15, 2011
[view latest posts]
Level 7
Forum Moderator
Im a fan of MODSonair
Category: CoD2 MP Mapping
Posted: Sunday, Aug. 26, 2007 05:39 pm
Ok here i edited the Noporone script. Now i havn't tested this. I don't have Call of Duty on this computer, but try it and see if it works.

Code:
/*
                nostand script by playername (beta)
                basied off of the:
	noprone script by Roger Abrahamsson

	Make trigger multiple and give it targetname nostand
	Make another trigger multiple and place it 32 units above the highest bottom part of the noprone area
	Give in a unique targetname and set this as a target in the first trigger.
*/


main()
{
	areas = getentarray("nostand","targetname");
	if(isdefined(areas))
	{
		for(i=0;i<areas.size;i++)
		{
			areas[i] thread NoStandArea();
		}
	}
}

NoStandArea()
{
	
	if(isdefined(self.target) )
	{
		ceilingname = self.target;
		ceiling = getent(ceilingname,"targetname");
		while(true)
		{
			self waittill("trigger",user);
			if (!user istouching(ceiling))
			{
				user setClientCvar("cl_stance", 2);
			}
			wait 0.5;
		}
	}
}


edited on Aug. 26, 2007 01:42 pm by playername
nullFew tips for coding.
1. Keep the script as short as possible.
2. Don't comment every line. Only comment portions where they may be needed to point something out.
3. Don't over complicate the script, keep it organized and easy to read.

These help you find simple errors and makes it easy to make changes.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 MP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»