I'm stepping into new waters doing this, but after two months of trial-and-erring my way through a new project, I'm about ready to release it into the wild, but wanted to see if I couldn't get some help on the last few bits that keep nagging me.
There's three specific things; custom perk discounts, bloodied melee textures, and third-person/attachment views:
First, is there any way to allow perk levels to give discounts on custom weapons without using Server Perks/SCRN Balance or any other outside package? For example, is there any way to insert code like the following into a weapon's pickup uc and have it work?
Second, I have a blood-covered texture for melee strikes, but it is not being swapped via the BloodSkinSwitchArray. Everything else is pointing to the right texture (a combiner, actually), but it doesn't appear, and my venture is that it just doesn't happen for custom weapons.
*corollary to the above, the arm textures remain unchanged and perma-lit across character types despite using the same combiner as the default 9mm arms*
Lastly, is there a way to have custom movement/usage animations, or, not relying on the defaults in the KF_Soldier_Trip file? As it is now, I've got the new gun using the M14's 3P animations, and it looks close, but is still noticeably off. It's alt-fire animations I switched in the attachment uc to use melee animations instead, but it remains idle when used in-game. I suspected this had to do with bone names or heirarchies in the model or animation, but experimenting with both proved fruitless [parenting the mesh to the base M14 bone lets it move as expected, but melee is idle; parenting the Pipe_3rd bone to the M14 bone and the mesh to the Pipe bone in the hopes that the mesh would be affected by both the rifle and melee animations only made neither one work].
EDIT: I feel I should also mention that Professor Google hasn't been much help in finding solutions to any of these problems; looking for perk discounts almost always points me toward the Server Perks stuff, looking for bloody-texture fixes goes to that one post about *removing* the texture, and the only useful thing brought up in the third-person/attachment searches was YoYoBatty's code to remove muzzle flashes from melee weapons.
There's three specific things; custom perk discounts, bloodied melee textures, and third-person/attachment views:
First, is there any way to allow perk levels to give discounts on custom weapons without using Server Perks/SCRN Balance or any other outside package? For example, is there any way to insert code like the following into a weapon's pickup uc and have it work?
Code:
function ???? something()
{
local KFPlayerReplicationInfo KFPRI;
KFPRI = KFPlayerReplicationInfo(Instigator.PlayerReplicationInfo);
if (KFPRI != none)
{
if (KFPlayerReplicationInfo(Weapon.Instigator.PlayerReplicationInfo).ClientVeteranSkill.default.PerkIndex == 4)
{
Cost=1200
}
else
{
Cost=default.Cost;
}
}
else
{
Cost=default.Cost;
}
return Super.Cost
}
defaultproperties
{
blah
blah
Cost=2000
}
*corollary to the above, the arm textures remain unchanged and perma-lit across character types despite using the same combiner as the default 9mm arms*
Lastly, is there a way to have custom movement/usage animations, or, not relying on the defaults in the KF_Soldier_Trip file? As it is now, I've got the new gun using the M14's 3P animations, and it looks close, but is still noticeably off. It's alt-fire animations I switched in the attachment uc to use melee animations instead, but it remains idle when used in-game. I suspected this had to do with bone names or heirarchies in the model or animation, but experimenting with both proved fruitless [parenting the mesh to the base M14 bone lets it move as expected, but melee is idle; parenting the Pipe_3rd bone to the M14 bone and the mesh to the Pipe bone in the hopes that the mesh would be affected by both the rifle and melee animations only made neither one work].
EDIT: I feel I should also mention that Professor Google hasn't been much help in finding solutions to any of these problems; looking for perk discounts almost always points me toward the Server Perks stuff, looking for bloody-texture fixes goes to that one post about *removing* the texture, and the only useful thing brought up in the third-person/attachment searches was YoYoBatty's code to remove muzzle flashes from melee weapons.
Last edited: