Page 1 of 1

Barbed wire cause hurt to players?

Posted: Tue Dec 24, 2002 7:41 pm
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:

Posted: Wed Dec 25, 2002 1:20 pm
by =Sgt. Daniel R. O*Neil=
eeeek is this not possible?

Posted: Wed Dec 25, 2002 1:28 pm
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?

Posted: Wed Dec 25, 2002 9:16 pm
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:

Posted: Thu Dec 26, 2002 2:06 am
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.

Posted: Thu Dec 26, 2002 2:32 am
by =Sgt. Daniel R. O*Neil=
I dont know his site. What is the URL ill check. 8)

Posted: Thu Dec 26, 2002 8:15 am
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

Posted: Thu Dec 26, 2002 4:23 pm
by =Sgt. Daniel R. O*Neil=
Actually i dont know what to use in radient

Posted: Thu Dec 26, 2002 4:41 pm
by Innkeeper
try this http://www.themappingdomain.com/tutoria ... index.html

Having to send someone elsewhere :( :cry:

Posted: Thu Dec 26, 2002 7:10 pm
by =Sgt. Daniel R. O*Neil=
Thanks appreciate it !! :D