Problem with position and angle.

Hello Facepunch

So i’ ve download the rape swep on steam. And i would like to custom it. The problem is that i dont know how to get the position and the angle.

I’ m sure you dont understand a fuck about my problem so here is the code ^^ :


	
AddCSLuaFile( "shared.lua" )
AddCSLuaFile( "cl_init.lua" )

include( "shared.lua" )
SWEP.Weight				= 5
SWEP.AutoSwitchTo		= false
SWEP.AutoSwitchFrom		= false
local RapeLength = SWEP.RapeLength
local SoundDelay = SWEP.SoundDelay
local ThrustVel = 750


local victimPos = {

	Vector( 4.1165161132813, 0.33807373046875, 24.5458984375 ),
	Vector( 10.886047363281, -6.7128601074219, 17.712890625 ),
	Vector( 14.32470703125, 6.6110534667969, 24.662109375 ),
	Vector( 10.561950683594, 11.863800048828, 14.9169921875 ),
	Vector( 14.15673828125, 11.935821533203, 4.0126953125 ),
	Vector( 8.0779418945313, -10.698425292969, 7.0859375 ),
	Vector( 17.083557128906, -6.5664367675781, 1.28515625 ),
	Vector( -6.3666381835938, -3.5222778320313, 22.1142578125 ),
	Vector( -5.1080932617188, -3.3052978515625, 4.3046875 ),
	Vector( 18.328247070313, -0.20745849609375, 18.6533203125 ),
	Vector( -7.3578491210938, 4.1403503417969, 22.0517578125 ),
	Vector( -6.7325439453125, 3.0444641113281, 4.2421875 ),
	Vector( -23.113708496094, 2.7197570800781, 6.40234375 ),
	Vector( -21.197875976563, -3.1515197753906, 6.390625 ),

}

local victimAng = {

	Angle( 13.763027191162, -7.126654624939, 297.44543457031 ),
	Angle( 65.35457611084, -125.17009735107, 116.02203369141 ),
	Angle( 56.451721191406, 125.61678314209, 68.999862670898 ),
	Angle( 71.750823974609, 1.1475394964218, 309.23059082031 ),
	Angle( 10.08162021637, 20.952842712402, 89.150527954102 ),
	Angle( 30.348388671875, 24.646505355835, 257.76071166992 ),
	Angle( -31.068134307861, 5.5770988464355, 100.95864105225 ),
	Angle( 85.568023681641, -10.062316894531, 259.72805786133 ),
	Angle( -11.049569129944, 179.28791809082, 92.02823638916 ),
	Angle( 36.883769989014, -10.713672637939, 95.383735656738 ),
	Angle( 87.360504150391, -50.038749694824, 219.5774230957 ),
	Angle( -7.4636454582214, -178.8634185791, 90.854110717773 ),
	Angle( 20.328042984009, 175.31163024902, 84.239585876465 ),
	Angle( 20.698318481445, -177.09216308594, 94.63240814209 ),

}



local attackerPos = {

	Vector( -0.65728759765625, 0.377197265625, 30.7626953125 ),
	Vector( 9.2244873046875, -3.9486083984375, 35.96484375 ),
	Vector( 6.1197509765625, 10.176849365234, 30.6552734375 ),
	Vector( 8.9208984375, 12.130462646484, 20.0087890625 ),
	Vector( 11.781127929688, 14.134094238281, 9.0712890625 ),
	Vector( 10.643859863281, -13.228057861328, 29.0009765625 ),
	Vector( 15.782470703125, -6.8009948730469, 20.9951171875 ),
	Vector( -9.7853393554688, -4.5965576171875, 24.3857421875 ),
	Vector( -11.373352050781, -7.4108276367188, 6.8203125 ),
	Vector( 13.504028320313, 4.9801635742188, 34.6708984375 ),
	Vector( -11.517456054688, 2.9996948242188, 25.9482421875 ),
	Vector( -14.434143066406, 11.57861328125, 10.537109375 ),
	Vector( -30.881225585938, 10.939605712891, 9.0634765625 ),
	Vector( -26.714416503906, -13.074645996094, 9.19921875 ),

}

local attackerAng = {

	Angle( -23.909204483032, 21.916522979736, 247.47807312012 ),
	Angle( 36.469985961914, -81.487747192383, 121.61176300049 ),
	Angle( 72.325134277344, 35.100917816162, 310.2248840332 ),
	Angle( 72.292373657227, 35.012317657471, 310.07629394531 ),
	Angle( 53.682888031006, 77.813186645508, 63.455425262451 ),
	Angle( 44.2184715271, 51.356468200684, 233.86199951172 ),
	Angle( 18.646379470825, 13.987821578979, 129.42607116699 ),
	Angle( 79.875244140625, -120.97535705566, 128.95693969727 ),
	Angle( -8.2740859985352, -159.73634338379, 95.78791809082 ),
	Angle( 4.1483745574951, 25.958532333374, 65.960624694824 ),
	Angle( 59.834487915039, 108.70742797852, 10.802012443542 ),
	Angle( 5.1143140792847, -177.7751159668, 61.338542938232 ),
	Angle( 46.266540527344, 113.92001342773, 15.213181495667 ),
	Angle( 49.310661315918, -157.73908996582, 96.905143737793 ),

}

Basicly i need to change the code to get something like this :

http://vignette4.wikia.nocookie.net/battlefield/images/3/36/Stab.jpg/revision/latest?cb=20130516222652

If any of you could give me a tool to know how to custom the positions i would be good

PS: Im waiting for something basic, i know that its not possible to get the battlefield animation
Thanks ^^

“I know im good at explaining problem”

ewwwwwwwwww

xD I know im kinda optimistic ^^

[editline]20th April 2015[/editline]

But i realy think if someone find give me a tool to custom those vector and angle, it would be realy possible .

The only thing i need to know is how to get pos of a ragdoll

Ragdoll:GetPos()

Yea but i mean, in game i set the pos of a ragdoll and i want to know what is this pose to copy paste it on my lua file.

[lua]
print( Entity( 1 ):GetEyeTrace().Entity:GetPos() )
[/lua]

In singleplayer.