1
Developer Introductions / Re: 3dFoin - Game-ready characters and creatures for sale
« on: Apr 15, 16, 01:39:31 PM »
Was hoping to see some high heels on that shockingly handsome female centaur. Such a disappointment.
method DetectGroundProximity ()
char as NodeRef = me._accControllerOwnerRef
pos as Vector3
GetNodePosition(char,pos)
leftVector as Vector3
GetNodeForwardVector(char,leftVector)
upVector as Vector3
GetNodeUpVector(char,upVector)
vectorList as List of Vector3
forwardVector as Vector3 = RotateVector(leftVector, (0,-90,0))
add back forwardVector to vectorList
rightVector as Vector3 = RotateVector(leftVector, (0,-180,0))
add back rightVector to vectorList
backwardVector as Vector3 = RotateVector(leftVector, (0,90,0))
add back backwardVector to vectorList
downVector as Vector3 = RotateVector(upVector, (180,0,0))
add back downVector to vectorList
leftDownVector as Vector3 = leftVector + downVector
add back leftDownVector to vectorList
forwardDownVector as Vector3 = forwardVector + downVector
add back forwardDownVector to vectorList
rightDownVector as Vector3 = rightVector + downVector
add back rightDownVector to vectorList
backwardDownVector as Vector3 = backwardVector + downVector
add back backwardDownVector to vectorList
excludedNodes as List of NodeRef = MUD_ExternalFunctions:MUD_GetClientCharacters()
add back char to excludedNodes
//excludedNodes as List of NodeRef
//add back myAccount to excludedNodes
distance2Ground as Float = 30
stoppingDistanceMultiplier as Float = 1
groundProximityDetected as Boolean = false
loop i from 1 to vectorList.length
intercept as Vector3 = (0,0,0)
meshName as String = ""
hit as NodeRef = Raycast3D(pos, vectorList[i], excludedNodes, distance2Ground, intercept, meshName)
if (hit <> None)
where hit is kindof heightmapnode
if(distance2Ground < (me.MUD_ACCCStoppingDistance * stoppingDistanceMultiplier))
groundProximityDetected = true
.
.
.
//reset distance
distance2Ground = 30
.
if (groundProximityDetected == true)
me.MUD_ACCCGroundProximityDetected = true
else
me.MUD_ACCCGroundProximityDetected = false
.
.
<createControlType inheritFrom='_minimap' class='MUD_GUIMiniMap' type='MUD_GUIMiniMap' description='MUD_GUIMiniMap' treePath='CleanEngine\MiniMap' name="MUD_GUIMiniMap">
<set name="MUD_GUIMiniMap.map">
<alphamask material="GUI\MUD_minimap_shape.dds"/>
</set>
<_spacer name="overview" insertBefore="player">
<size x="256" y="256"/>
</_spacer>
<_spacer name="bookmarks" insertBefore="player">
<size x="256" y="256"/>
</_spacer>
<set name="MUD_GUIMiniMap.player">
<size x="15" y="20"/>
<set name='MUD_GUIMiniMap.player' attribute='texture' value="GUI\MUD_CleanEngineGUI.dds"/>
<defaultStatePresentation>
<size x="15" y="15"/>
</defaultStatePresentation>
</set>
<set name="MUD_GUIMiniMap.frame">
<set name='MUD_GUIMiniMap.frame' attribute='texture' value="GUI\MUD_minimap_frame.dds"/>
<defaultStatePresentation>
<position x="0" y="0"/>
<size x="256" y="256"/>
</defaultStatePresentation>
</set>
</createControlType>