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

Members Online

»
0 Active | 14 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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: Moving Triggers?
drofder2004
General Member
Since: Apr 11, 2004
Posts: 207
Last: Mar 12, 2007
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Thursday, Aug. 18, 2005 11:12 pm
Is it possible to move triggers (using scripting)?

Or is there a way of making scripted objects (e.g platforms) hurting the player when they get in the way of its movement?

Thanks in advance :)
=Alias=Drofder
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Friday, Aug. 19, 2005 12:26 am
looking for an elevator fix are we?

havent come up with a way yet that i know of...

you can create triggers at multiple locations and turn them on and off relative to the position of your entity

as an idea for you...heh heh

[angryalien]
Share |
drofder2004
General Member
Since: Apr 11, 2004
Posts: 207
Last: Mar 12, 2007
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Aug. 19, 2005 03:53 pm
Not exactly a elevator fix, but same sorta thing ;)

How about this idea, not sure how to script it as i only know basics but this is how it would work...

Have an triggerhurt covering the entire movement of the object, but it is only triggered when player touches the object?

e.g

A wall moving left and right from position 1 to 100, and having a trigger hurt stretched from 1 to 100. (so the wall is moving left and right inside the triggerhurt (which is currently inactive).

Then if/when the player touches the moving wall the trigger becomes active?

If thats possible could someone explain how ;)
thanks
=Alias=Drofder
Share |
drofder2004
General Member
Since: Apr 11, 2004
Posts: 207
Last: Mar 12, 2007
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Friday, Aug. 19, 2005 07:08 pm
I got it working :)

Main ()
{
maps\mp\_load::main();
thread wall_move();
thread wall_hurt();
}

wall_move()
{
wall = getent ("wall","targetname");
trig = getent ("wall_trig","targetname");

while (1)
{
trig waittill ("trigger");
// Wall movements here
}
}

wall_hurt()
{
wall_hurt = getent ("wall_hurt","targetname");
wall = getent ("wall","targetname");

while (1)
{
wall_hurt waittill ("trigger",user);

if (user istouching(wall))
{
user suicide();
}
}
}

[2guns]
Share |
StrYdeR
General Member
Since: May 11, 2004
Posts: 11671
Last: Oct 7, 2021
[view latest posts]
Level 10
Admin
Forum Moderator
Im a HOST of MODSonair
Category: CoD Mapping
Posted: Saturday, Aug. 20, 2005 01:12 am
nice - almost too simple

i can think of a use for it already[angryalien]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Saturday, Aug. 20, 2005 10:32 am
Exactly.. very nice and simple..

Could you write this down with some pictures and make it into a tuturoal maybe?
Share |
BR3NTB
General Member
Since: Jun 20, 2004
Posts: 893
Last: Mar 3, 2006
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Saturday, Aug. 20, 2005 01:43 pm
Useful For Making Debris That Hurts The Player. Walls Falling On Them n Such.
I Would Think.
[smokin]
Share |
The_Caretaker
General Member
Since: Jun 8, 2004
Posts: 11625
Last: Jul 7, 2009
[view latest posts]
Level 10
Category: CoD Mapping
Posted: Saturday, Aug. 20, 2005 01:50 pm
Exactly...

Or for door blocking players..
Share |
drofder2004
General Member
Since: Apr 11, 2004
Posts: 207
Last: Mar 12, 2007
[view latest posts]
Level 4
Category: CoD Mapping
Posted: Saturday, Aug. 20, 2005 05:51 pm
This doesnt seem to work at every event.

The script says when "touching". Touching is only if you are inside the object. So, a second idea (not tested... yet) was to put a nodraw square around the object (1/2 units thick) and making it non-coliding then making it all a script-brushmodel.

I will make a tutorial once I have tested it fully :)
Share |
CorruptedFile
General Member
Since: May 16, 2004
Posts: 23
Last: Sep 3, 2005
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Aug. 29, 2005 04:31 am
Any headway on the tut for this, all I seem to be able to do is die as soon as I touch the trigger.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»