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. )
How to make animation?
-
khy12ab
Deuce - Posts: 4
- Joined: Wed Jan 21, 2015 5:53 am
-
Chameleon
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:
Delete it. We took care of sprinting animation.
Now go to /Resources/Scripts/Skin/WEAPON/View.as
Find this:
If something is not working, please refer to cpp guides that are all over the web. Also, english.
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
Delete it. We took care of aiming animation.if(AimDownSightStateSmooth > 0.8f){
mat = AdjustToAlignSight(mat, Vector3(0.f, 5.f, -4.9f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
}If something is not working, please refer to cpp guides that are all over the web. Also, english.
Have you always wanted a sound tinnitus effect in AoS?
No?
Anyway, here it is for OpenSpades!
-
khy12ab
Deuce - Posts: 4
- Joined: Wed Jan 21, 2015 5:53 am
Chameleon wrote:Hello khy12ab,wow..you are good man!thanks!
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 allif(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 allDelete it. We took care of aiming animation.if(AimDownSightStateSmooth > 0.8f){ mat = AdjustToAlignSight(mat, Vector3(0.f, 5.f, -4.9f), (AimDownSightStateSmooth - 0.8f) / 0.2f); }
If something is not working, please refer to cpp guides that are all over the web. Also, english.
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..
-
Chameleon
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...
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...
Have you always wanted a sound tinnitus effect in AoS?
No?
Anyway, here it is for OpenSpades!
-
khy12ab
Deuce - Posts: 4
- Joined: Wed Jan 21, 2015 5:53 am
Chameleon wrote:Korean high school = tough shit man.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.
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...
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
- 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)
Now, go to BasicViewWeapon.as and:
Delete this:
Like here: (in this example shotgun files are read from .pak)
Spoiler:
Delete this:
Code: Select all
Find this:
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;
}Code: Select all
And make it like this:
trans += Vector3(-0.13f * (1.f - AimDownSightStateSmooth), 0.5f, GetZPos());Code: Select all
Go to View.as and delete this:
trans += Vector3(-0.13f, 0.5f, 0.2f);Code: Select all
if(AimDownSightStateSmooth > 0.8f){
mat = AdjustToAlignSight(mat, Vector3(0.f, 16.f, -4.6f), (AimDownSightStateSmooth - 0.8f) / 0.2f);
}Have you always wanted a sound tinnitus effect in AoS?
No?
Anyway, here it is for OpenSpades!
Who is online
Users browsing this forum: No registered users and 2 guests
