PDA

View Full Version : adding allowed weapons to mut instagib?



legacy-iniquitous666
02-17-2006, 12:11 PM
ive been making a combo pack and have four new combos to release but i want them to all be compatible with the things that came with the game by default. They are mainly for the gametype Invasion but some can be used with team games based on amount of lives etc... so far 3 of them are fully compatible. but im having trouble with one. As its invasion and people like to use the mutator instagib that came with the game i want to make them all compatible with instagib and not just normal weapons. one of the combos "spawns/creates" a new weapon in your inventory and takes away all the others. i'm having problems with instagib. i can get it to remove the insta rifle but i will not let me create any weapon other than the trans. ive tried in the combo code to make it so it changes the gametype from bNoInstagibReplace to false and to allow new weapons and it all compiles, but in game all it does is remove the current weapon, spawns the effect of the combo but it will not allow the new weapon or any weapon. Is there a way a mutator or a combo can overwrite this "bNoInstagibReplace". i know in the instagib code it says only the trans is allowed, is there a way i can add to this via aontehr mut or combo? any help or advice is greatly appreciated.

legacy-iniquitous666
02-19-2006, 03:03 PM
bump

legacy-Bishops292
02-19-2006, 03:23 PM
do you have a game rules? if not try to use one for them.. and do this to your game rules...


function bool PreventDeath(Pawn Killed, Controller Killer, class<DamageType> damageType, vector HitLocation)
{
if(NextGameRules != None) return yourGameRules.NetDamage(OriginalDamage, Damage, injured, instigatedBy, HitLocation, Momentum, DamageType);
return Damage;
}

That might work. just a hunch really.

legacy-iniquitous666
02-19-2006, 03:48 PM
Thanks but im not sure i understand, where should i put this code you gave me? in my gamerules? in my mut? in my combo?

I'm trying to spawn a weapon via a combo into instagib, so im guessing i would have to change the gamerules somehow. can you pls clarify for me?