Barbed wire cause hurt to players?

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Barbed wire cause hurt to players?

Post by =Sgt. Daniel R. O*Neil= »

I wondering how you make it so barbed wire causes pain to the players in mohaa because i would like to use that same idea to cause pain to players when they enter the water. Does anyone know how>? :roll:
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post by =Sgt. Daniel R. O*Neil= »

eeeek is this not possible?
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yes it's possible, good you bumped it, I wanted to help before but forgot all about it :oops: .

You can do it by scripting, but first I'm wondering whether this is for single player or for multiplayer?
Image
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post by =Sgt. Daniel R. O*Neil= »

YAY !!! Yes this is for mulitplayer. Its like moat that surrounds two castle/forts. Ive got another question but its out of curiousity. We all know that sometimes when you forget to miter a wall and you have conflicting textures that sometimes textures wont show up or will dissappear when you compile the map. Ive noticed that when you make a patch of terrain that you can have it intersecting with other textures and it doesnt cause any problems at all. Terrain is almost like a blessing. Im just curious why terrain doesnt cause problems when interesecting other textures like having half of a texture poking through the top of a map and the rest underneath? Just interesting i think :roll:
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

Maybe you can ask Wombat. I thought I saw a tutorial on that in his page. Or ask the makers of Omaha 2 for Spearhead.
Live to map, not map to live.
-mohaa_rox, .map
moderator
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post by =Sgt. Daniel R. O*Neil= »

I dont know his site. What is the URL ill check. 8)
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

This is Wombat's script I think. I assume the single player version doesn't work.

Code: Select all

//*********************************************************************************************************************************************
//*** barbwire script - modified from the original minefield.scr
//*** The player enters the barbwire, he'll start to be hurt slowly till he exits.
//*** This main thread is called by this script and should not be called by the
//*** level script itsself.  The level script should call barbwire_setup
//*** syntax ------------------------------------
//*** barbwire <this is the index number for the array of barbwire triggers>
//*********************************************************************************************************************************************
barbwire local.index:

barbwire_loop:

$barbwire[local.index] waittill trigger

local.sucker = parm.other

if (local.sucker istouching $barbwire[local.index] == 1)
{

        local.sucker exec global/bullethit.scr (0 -1 0) 1 1 1
	wait 1
	goto barbwire_loop
}

goto barbwire_loop

end


//**************************************
//*** single version barbwire thread

barbwire_single:

$barbwire waittill trigger

if (local.sucker istouching $barbwire == 1)
{
	
	local.sucker exec global/bullethit.scr (0 -1 0) 2 1 1
	wait 1
	goto barbwire_single
}
else
{
	goto barbwire_single
}

end


//*************************************************
//*** setup the barbwires
//*** the level scripts should call this thread
//*************************************************
barbwire_setup:
if ($barbwire == NULL)
{
	println "^~^~^ There are no barbwires in the map!!!"
	goto barbwire_setup_end
}

/*
if ($barbwire.size == 1)
{
	thread barbwire_single
	goto barbwire_setup_end
}
*/

for (local.i = 1 ; local.i <= $barbwire.size ; local.i ++)
{
	thread barbwire local.i
}

barbwire_setup_end:
end
Image
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post by =Sgt. Daniel R. O*Neil= »

Actually i dont know what to use in radient
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
Innkeeper
Colonel
Posts: 475
Joined: Mon Nov 25, 2002 10:13 pm
Location: NC, USA (about 7.5 klicks from the capital dome)
Contact:

Post by Innkeeper »

try this http://www.themappingdomain.com/tutoria ... index.html

Having to send someone elsewhere :( :cry:
=Sgt. Daniel R. O*Neil=
Second Lieutenant
Posts: 172
Joined: Wed Nov 27, 2002 10:15 pm
Contact:

Post by =Sgt. Daniel R. O*Neil= »

Thanks appreciate it !! :D
"Sometimes to cause the biggest change in the world, is as something as small as saying "Hi" to someone, on a crowded bus"
Post Reply