Two modding questions
Moderator: Moderators
- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Two modding questions
1. how do you make it so any unit that has a lightsaber/sword can use secondary weapons like grenades? mine refuses to let me right click to throw a grenade.
2. How do you fix the Clone Commander so grenades that he throws use the normal animations?
(if you haven't figured it out, im trying to do both at the same time)
2. How do you fix the Clone Commander so grenades that he throws use the normal animations?
(if you haven't figured it out, im trying to do both at the same time)
-
RepSharpshooter
- Gametoast Staff

- Posts: 1351
- Joined: Tue Jul 10, 2007 4:10 pm
Re: Two modding questions
I know it has something to do with weapon channels
This works for me, although the animations are wrong (force push). Someone will have to help you there.
Code: Select all
WEAPONSECTION = 1
WeaponName = "orp_weap_vibrosword"
WeaponAmmo = 6
WEAPONSECTION = 2
WeaponName = "kot_weap_inf_fraggrenade"
WeaponAmmo = 4
WeaponChannel = 1-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Two modding questions
If I'm not mistaken, you will have to make custom animations for the characters with the grenade throw in instead of force push or whatever.
- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Two modding questions
Well, i can't make anims on my own, so ill just ignore it i guess.
So i should give the sword, lightsaber, etc. ammo to fix it? im a little confused
So i should give the sword, lightsaber, etc. ammo to fix it? im a little confused
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Two modding questions
Melee animationsets use the force power animation for the secondary (offhand) weapon. No way around that unless you want to either make custom animationbanks or edit the .combo to change the force power animation to the lightsaber throw animation. The second is much easier, just change the lines in the combo (there are two, right at the top) that say:
to:
To do the second, you need to not use the commander animationbank (Delete this line: "AnimationName = "clonecommander"").
Code: Select all
OffhandAnimation("stand_useforce", "FIRE2");
OffhandAnimation("stand_useforce", "CHARGE");Code: Select all
OffhandAnimation("stand_throw", "FIRE2");
OffhandAnimation("stand_throw", "CHARGE");- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Two modding questions
well, i got my clone ingame with the right animations. but when i switched the force to throw thing, nothign changed except when i throw a grenade using "r", its more realistic. I still can't use the right mouse button to throw a 'nade
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Two modding questions
Do you have this unit with a ranged weapon and a melee weapon?
- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Two modding questions
Well, right now yes. in the end i plan to have the following weapons:
doublesaber
grenade
droideka shield
buff: defense
i have the chaingun right now, but im gonna remove it.
doublesaber
grenade
droideka shield
buff: defense
i have the chaingun right now, but im gonna remove it.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Two modding questions
Then remove it. Problem solved. (It's an issue related to having another primary weapon with a melee weapon.)
- Silas
- Captain

- Posts: 481
- Joined: Thu Oct 11, 2007 5:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
Re: Two modding questions
sounds good. well, with that problem fixed, another pops up, lol. my game crashes on loading. when i look at the log, i have no level 3 arrors, only 2's. this is the main one i am getting:
Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 108
the number goes from 108 or whatever to about 403.
Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 108
the number goes from 108 or whatever to about 403.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Two modding questions
SetMemoryPoolSize("SoldierAnimation", 1800)
Add that to the bottom of the memory pools in your LUA. I always use 1800, that way no matter how many units I have there's always enough memory (and it's not very expensive on memory)
Add that to the bottom of the memory pools in your LUA. I always use 1800, that way no matter how many units I have there's always enough memory (and it's not very expensive on memory)
