How to make animation?

OpenSpades is an open source alternative client for AoS Classic and beyond! Runs on Windows, Mac, and Linux. Created by yvt.
Compatible with AoS Classic.
6 posts Page 1 of 1 First unread post
khy12ab
Deuce
Posts: 4
Joined: Wed Jan 21, 2015 5:53 am


I am making openspade skin pack which HAWKEN robot. But, im must change running and aiming anamation.
I don't want weapon animation when running or aiming. But i don't know how to modify animation. How to make animation?

(Sorry. I don't speak English well. i used a bit Translator. )
Chameleon
Modder
Modder
Posts: 601
Joined: Thu Nov 22, 2012 6:41 pm


Hello khy12ab,
Nice to see new people on forums :)
First of all, modding is hard. You will fail 9 times and succeed 1.
Go to /Resources/ folder.
Extract all "*.pak" files (if you don't know how to open them, rename them to "*.zip")
Go to /Resources/Scripts/Skin/BasicViewWeapon.as, open it.
Find this:
Code: Select all
if(sprintState > 0.f) {
				mat = CreateRotateMatrix(Vector3(0.f, 0.f, 1.f),
					sprintState * -1.3f) * mat;
				mat = CreateRotateMatrix(Vector3(0.f, 1.f, 0.f),
					sprintState * 0.2f) * mat;
				mat = CreateTranslateMatrix(Vector3(0.2f, -0.2f, 0.05f)
					* sprintState)  * mat;
			}

Delete it. We took care of sprinting animation.
Now go to /Resources/Scripts/Skin/WEAPON/View.as
Find this:
Code: Select all
if(AimDownSightStateSmooth > 0.8f){
				mat = AdjustToAlignSight(mat, Vector3(0.f, 5.f, -4.9f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
			}
Delete it. We took care of aiming animation.

If something is not working, please refer to cpp guides that are all over the web. Also, english.
khy12ab
Deuce
Posts: 4
Joined: Wed Jan 21, 2015 5:53 am


Chameleon wrote:
Hello khy12ab,
Nice to see new people on forums :)
First of all, modding is hard. You will fail 9 times and succeed 1.
Go to /Resources/ folder.
Extract all "*.pak" files (if you don't know how to open them, rename them to "*.zip")
Go to /Resources/Scripts/Skin/BasicViewWeapon.as, open it.
Find this:
Code: Select all
if(sprintState > 0.f) {
				mat = CreateRotateMatrix(Vector3(0.f, 0.f, 1.f),
					sprintState * -1.3f) * mat;
				mat = CreateRotateMatrix(Vector3(0.f, 1.f, 0.f),
					sprintState * 0.2f) * mat;
				mat = CreateTranslateMatrix(Vector3(0.2f, -0.2f, 0.05f)
					* sprintState)  * mat;
			}

Delete it. We took care of sprinting animation.
Now go to /Resources/Scripts/Skin/WEAPON/View.as
Find this:
Code: Select all
if(AimDownSightStateSmooth > 0.8f){
				mat = AdjustToAlignSight(mat, Vector3(0.f, 5.f, -4.9f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
			}
Delete it. We took care of aiming animation.

If something is not working, please refer to cpp guides that are all over the web. Also, english.
wow..you are good man!thanks! Blue_Happy3 But..i have serveral problems. The gun should not move when aiming or raise. Where should I delete?

sorry to ask many questions.. but, im no have time..i am Korean. and, i will going highschool. Korean highschool's study time is AM7~PM9, homework time is PM9~PM11. im no have time..sorry to ask many questions.. Blue_Crying
Chameleon
Modder
Modder
Posts: 601
Joined: Thu Nov 22, 2012 6:41 pm


Korean high school = tough shit man.

WHERE - ...\OpenSpades-0.0.12b-Windows\Resources\
WHAT - "pak000-Base.pak"
HOW - rename to "pak000-Base.zip", extract
WHERE - ...\OpenSpades-0.0.12b-Windows\Resources\Scripts\Skin\BasicViewWeapon.as
WHAT - already said.
Not going to help you if you don't know where "\Resources\ folder" is. If you can't it means that you sleep too little...
khy12ab
Deuce
Posts: 4
Joined: Wed Jan 21, 2015 5:53 am


Chameleon wrote:
Korean high school = tough shit man.

WHERE - ...\OpenSpades-0.0.12b-Windows\Resources\
WHAT - "pak000-Base.pak"
HOW - rename to "pak000-Base.zip", extract
WHERE - ...\OpenSpades-0.0.12b-Windows\Resources\Scripts\Skin\BasicViewWeapon.as
WHAT - already said.
Not going to help you if you don't know where "\Resources\ folder" is. If you can't it means that you sleep too little...
i am going C:\OpenSpades-0.0.12b-Windows\Resources. and, i open pak010-BaseSkin, and i go to scripts-skin-Smg-View.as, i find this code.
if(AimDownSightStateSmooth > 0.8f){
mat = AdjustToAlignSight(mat, Vector3(0.f, 5.f, -4.9f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
}
and, i deleated it. but.. my Aim animation is not deleated. Do you know steam game "Counter-Strike: Source "?I want aiming like them. CS:Source's aiming is not like the Battlefield, just Zoom. i want this.
Umm..Can you make file for me?(this is Google Translator)Where I am not sure of this problem....(this is Google Translator)

(i succeed deleating Sprint, Raise Animation. But..i failed deleating Aiming Animation....i think, i am idiot..i don't know cause..)
Chameleon
Modder
Modder
Posts: 601
Joined: Thu Nov 22, 2012 6:41 pm


Extract it. Do not open file from inside of archive. You do not need to repack it.
Like here: (in this example shotgun files are read from .pak)
Spoiler:
Image
Now, go to BasicViewWeapon.as and:
Delete this:
Code: Select all
if(sprintState > 0.f) {
				mat = CreateRotateMatrix(Vector3(0.f, 0.f, 1.f),
					sprintState * -1.3f) * mat;
				mat = CreateRotateMatrix(Vector3(0.f, 1.f, 0.f),
					sprintState * 0.2f) * mat;
				mat = CreateTranslateMatrix(Vector3(0.2f, -0.2f, 0.05f)
					* sprintState)  * mat;
			}
			
			if(raiseState < 1.f) {
				float putdown = 1.f - raiseState;
				mat = CreateRotateMatrix(Vector3(0.f, 0.f, 1.f),
					putdown * -1.3f) * mat;
				mat = CreateRotateMatrix(Vector3(0.f, 1.f, 0.f),
					putdown * 0.2f) * mat;
				mat = CreateTranslateMatrix(Vector3(0.1f, -0.3f, 0.1f)
					* putdown)  * mat;
			}
Find this:
Code: Select all
trans += Vector3(-0.13f * (1.f - AimDownSightStateSmooth), 0.5f, GetZPos());
And make it like this:
Code: Select all
trans += Vector3(-0.13f, 0.5f, 0.2f);
Go to View.as and delete this:
Code: Select all
if(AimDownSightStateSmooth > 0.8f){
mat = AdjustToAlignSight(mat, Vector3(0.f, 16.f, -4.6f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
}
6 posts Page 1 of 1 First unread post
Return to “OpenSpades Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest