Hello there, it has been awhile.
I was looking places for a C++ coder to simply make ONE simple native function for my team for our mod, Hatchet.
The code is simply controlling a mesh's drawscale, but it can be changed by the X, Y and Z axis.
So like SetScaleXYZ(float x, float y, float z), it would be like that, basically.
Anyone willing to help? I have a solid 5 bucks that can go towards someone's pizza fund if they can help me out.
-Atrey
Where are the native coders :D
-
- Thug
- Posts: 49
- Joined: Tue Jun 26, 2012 3:32 am
Re: Where are the native coders :D
So basically you want something like a MESHMAP SCALE command that works at runtime?
Thats basically just sth. which calls Mesh::SetScale() like.
But, there is a caveeat: This is per Mesh not per Actor, so if you need control over it on a per Actor level, you need to create other instances of the Mesh at runtime.
In case you just want deform a static object which has no animation, you could instead try to make use the blend animation system. Create three new animation frames in eitherone one the mesh is scaled to the maximum along an axis and play these as blend animations to control the scale in each direction.
And keep your pizza money.
Thats basically just sth. which calls Mesh::SetScale() like.
For the other parts of building a native package consult the SampleNativePackage out of ut432pubsrc or runepubsrc and this.// static native(666) function SetMeshScale( Mesh Mesh, Vector Scale );
void UToolbag::execSetMeshScale( FFrame& Stack, RESULT_DECL )
{
P_GET_OBJECT_REF(UMesh,Mesh);
P_GET_VECTOR(Scale);
if ( Mesh )
Mesh->SetScale( Scale );
}
But, there is a caveeat: This is per Mesh not per Actor, so if you need control over it on a per Actor level, you need to create other instances of the Mesh at runtime.
In case you just want deform a static object which has no animation, you could instead try to make use the blend animation system. Create three new animation frames in eitherone one the mesh is scaled to the maximum along an axis and play these as blend animations to control the scale in each direction.
And keep your pizza money.
-
- Thug
- Posts: 49
- Joined: Tue Jun 26, 2012 3:32 am
Re: Where are the native coders :D
Hey! Thanks for quickly replying!
I will definitely give this a go. Check your email if you can Han, I had to ask you a couple things, I asked you the same question here, but also some other things.
Thanks, man!
I will definitely give this a go. Check your email if you can Han, I had to ask you a couple things, I asked you the same question here, but also some other things.
Thanks, man!
-
- Illuminati
- Posts: 2284
- Joined: Thu Mar 08, 2012 3:21 am
Re: Where are the native coders :D
German engineering living up to its reputation as usual