change player weapon mesh orientation

Discussions about Coding and Scripting
Post Reply
museeeii
Novice
Posts: 13
Joined: Tue Feb 07, 2017 12:42 am

change player weapon mesh orientation

Post by museeeii »

I am making an mod for UT99, and just want to know how can I change player hand orientation using UnrealScript.
I want to make view and weapon orientations independently.
thanks in advance
User avatar
EvilGrins
Godlike
Posts: 9668
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA
Contact:

Re: change player weapon mesh orientation

Post by EvilGrins »

SKtroopers are all left handed, but the view in the HUD can be either right or left handed under options.

Or did you have something a tad more elaborate in mind?
Attachments
Shot0015.png
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
museeeii
Novice
Posts: 13
Joined: Tue Feb 07, 2017 12:42 am

Re: change player weapon mesh orientation

Post by museeeii »

Or did you have something a tad more elaborate in mind?
I am making an UT99 VR project, which view (camera) and player weapon mesh would move indepedently from each other.
this would run on console, but I just need an example of code like this: set playerpawn weaponmesh orientation (x=0,y=0,z=0) or kind like that to run on uscript.

any help?
museeeii
Novice
Posts: 13
Joined: Tue Feb 07, 2017 12:42 am

Re: change player weapon mesh orientation

Post by museeeii »

I found some ways to do that in the console:

set enforcer FireOffset (Y=-10.000000,Z=-4.000000)
set enforcer Rotation (Yaw=0,Pitch=0,Roll=0)
set Botpack.enforcer Rotation (Yaw=0,Pitch=0,Roll=0)
set Botpack.ut_biorifle FireOffset (X=0,Y=0,Z=0)
set Botpack.ut_biorifle PlayerViewOffset (X=100,Y=0,Z=0)

I realize that setting player weapon mesh yaw and pitch doesnt make effect since this properties are changing on each weapon tick() function.

any ideas to make it work on script, instead on console?
User avatar
Chamberly
Godlike
Posts: 1963
Joined: Sat Sep 17, 2011 4:32 pm
Personal rank: Dame. Vandora
Location: TN, USA
Contact:

Re: change player weapon mesh orientation

Post by Chamberly »

museeeii wrote:I found some ways to do that in the console:

set enforcer FireOffset (Y=-10.000000,Z=-4.000000)
set enforcer Rotation (Yaw=0,Pitch=0,Roll=0)
set Botpack.enforcer Rotation (Yaw=0,Pitch=0,Roll=0)
set Botpack.ut_biorifle FireOffset (X=0,Y=0,Z=0)
set Botpack.ut_biorifle PlayerViewOffset (X=100,Y=0,Z=0)

I realize that setting player weapon mesh yaw and pitch doesnt make effect since this properties are changing on each weapon tick() function.

any ideas to make it work on script, instead on console?
Well instead of doing it in the set mode in the console, it can be done making a simple mutator that doesn't permanently screw things up.
The mutator should be coded as making subclasses of the weapon so the property of the x location without having to make some changes. So let's say a VR x location scheduler for weapons. Shouldn't be hard.
Image
Image
Image Edit: Why does my sig not work anymore?
Post Reply