Login
Log in with
Search in titles only
Search in UDK Programming and Unrealscript only
Search
Advanced Search
Forums
Today's Posts
UDK
UDK Development
UDK Programming and Unrealscript
Announcement
Collapse
No announcement yet.
Weapon>SetPosition&LagRot
Collapse
X
Collapse
Posts
Latest Activity
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
h1m2
replied
03-25-2013, 03:24 PM
Can Anyone Help me?
how to use this Scripts?
Please Help
Leave a comment:
Post Comment
Cancel
AugustoMoura
replied
03-28-2012, 04:37 AM
Really thanks, worked fine.
Leave a comment:
Post Comment
Cancel
ex4
replied
03-18-2012, 07:28 PM
Paste this code in your Class weapon
simulated event SetPosition(UDKPawn Holder)
{
local vector DrawOffset, ViewOffset;
local rotator NewRotation;
if ( !Instigator.IsFirstPerson() )
return;
SetHidden( false );
PlayerViewOffset.X = 0;
PlayerViewOffset.Y = 0;
PlayerViewOffset.Z = 0;
DrawOffset = PlayerViewOffset;
DrawOffset.Z = UTPawn(Holder).GetEyeHeight();
SetLocation( Holder.Location + DrawOffset );
NewRotation = (Holder.Controller == None ) ? Holder.Rotation : Holder.Controller.Rotation;
NewRotation.Yaw = LagRot2(NewRotation.Yaw & 65535, Rotation.Yaw & 65535, MaxYawLag);
NewRotation.Pitch = LagRot2(NewRotation.Pitch & 65535, Rotation.Pitch & 65535, MaxPitchLag);
SetRotation(NewRotation);
}
simulated function int LagRot2(int NewValue, int OldValue, float MaxDiff)
{
if ( (NewValue) ClockWiseFrom (OldValue) )
{
if ( OldValue > NewValue )
{
OldValue -= 65535;
}
if ( NewValue - OldValue > MaxDiff )
OldValue =( NewValue - MaxDiff);
}
else
{
if ( OldValue < NewValue )
{
NewValue -= 65535;
}
if ( OldValue - NewValue > MaxDiff )
OldValue = (NewValue + MaxDiff);
}
return (OldValue + 0.6 * (NewValue - OldValue));
}
Leave a comment:
Post Comment
Cancel
AugustoMoura
replied
02-12-2012, 10:22 PM
What did you do to fix?
Leave a comment:
Post Comment
Cancel
ex4
replied
12-02-2011, 09:13 PM
I made it!!!
http://www.youtube.com/watch?v=GXuAeDlkdno
and
http://www.youtube.com/watch?v=5YZs0...ature=youtu.be
Leave a comment:
Post Comment
Cancel
ex4
replied
11-18-2011, 10:29 PM
Originally posted by
VendorX
View Post
Put your files in some human site, because peoples don't know how to download from russian... things...
http://depositfiles.com/files/9hrgb827s
Leave a comment:
Post Comment
Cancel
VendorX
replied
11-18-2011, 09:11 PM
Put your files in some human site, because peoples don't know how to download from russian... things...
Leave a comment:
Post Comment
Cancel
ex4
replied
11-18-2011, 05:09 PM
I want to make a smooth movement of arms
Leave a comment:
Post Comment
Cancel
Carsten
replied
11-18-2011, 05:02 PM
Is there a question in here somewhere?
Leave a comment:
Post Comment
Cancel
ex4
started a topic
Weapon>SetPosition&LagRot
11-18-2011, 04:52 PM
Weapon>SetPosition&LagRot
Weapon & scripts:
http://narod.ru/disk/26102760001/UDK_.rar.html
or
http://depositfiles.com/files/9hrgb827s
Video:
http://www.youtube.com/watch?v=xGiVN...eature=related
Needs to be done smoothly sight, please help.
Functions SetPosition & LagRot in script M4A1.uc
For russian people >
http://forums.epicgames.com/threads/...apon-Rotations
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Leave a comment: