[Mutator] Real Weapons

  • Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/
  • Weve updated the Tripwire Privacy Notice under our Policies to be clearer about our use of customer information to come in line with the EU General Data Protection Regulation (GDPR) rules that come into force today (25th May 2018). The following are highlights of our changes:


    We've incorporated the relevant concepts from the GDPR including joining the EU and Swiss Privacy Shield framework. We've added explanations for why and how Tripwire processes customer data and the types of data that we process, as well as information about your data protection rights.



    For more information about our privacy practices, please review the new Privacy Policy found here: https://tripwireinteractive.com/#/privacy-notice

YoYoBatty

FNG / Fresh Meat
Dec 17, 2009
3,460
2,502
0
Canada
UScript, Unreal Script, it's the programming language used to write all Unreal Engine games. Your starting a project that requires a bit of knowledge of UScript and you haven't even heard of it.
 

EonSeig

FNG / Fresh Meat
Oct 13, 2010
260
93
0
Florida
do crossbows even have recoil? i would assume like longbows, they do not. they are pulling the arrow forward, not pushing it with propellants.

We were talking about the AA12, not the crossbow. The Xbow has virtually no recoil in this game as it is.

And as I said before, you won't need to do much to the Xbow. It's already getting nerfed to the point where it takes 4 headshots just to decapitate a Fleshpound, not kill it.

And exactly what did the conversion of the HS to a doubled barreled rifle do, other than make exactly like what it sounds like.
 
Last edited:

Benjamin

Grizzled Veteran
May 17, 2009
3,650
635
113
France
Unfortunately the bullet will continuously go through everything and never stop.

It won't, if you look at the code you'll see there's a limit.

do crossbows even have recoil? i would assume like longbows, they do not. they are pulling the arrow forward, not pushing it with propellants.

"To every action there is always an equal and opposite reaction"
 

YoYoBatty

FNG / Fresh Meat
Dec 17, 2009
3,460
2,502
0
Canada
It won't, if you look at the code you'll see there's a limit.

I did look in the code, I see that it gradually loses damage as it goes through, but it doesn't feel like it will ever stop... Maybe. In this case you might want to adjust it so it loses way more damage as it goes through.
 

EonSeig

FNG / Fresh Meat
Oct 13, 2010
260
93
0
Florida
"To every action there is always an equal and opposite reaction"

Meaning that the action of the arrow going forward away from you exerts a force on the string of the bow which pulls the bow against your hand, therefore making a recoil. Rockets work by throwing flames out of the back of the tube instead of throwing flames up against the inside of the tube. It's also why you will never see anyone fly backwards from getting a shotgun blast to the chest because in real life such a shotgun would also throw the person who fired it.
 

Benjamin

Grizzled Veteran
May 17, 2009
3,650
635
113
France
I did look in the code, I see that it gradually loses damage as it goes through, but it doesn't feel like it will ever stop... Maybe. In this case you might want to adjust it so it loses way more damage as it goes through.

Missed this line?

Code:
While( (HitCount++)<10 )

Meaning that the action of the arrow going forward away from you exerts a force on the string of the bow which pulls the bow against your hand, therefore making a recoil. Rockets work by throwing flames out of the back of the tube instead of throwing flames up against the inside of the tube. It's also why you will never see anyone fly backwards from getting a shotgun blast to the chest because in real life such a shotgun would also throw the person who fired it.

Indeed. :)
 

Trololololololololololo

FNG / Fresh Meat
May 6, 2010
110
35
0
Meaning that the action of the arrow going forward away from you exerts a force on the string of the bow which pulls the bow against your hand, therefore making a recoil. Rockets work by throwing flames out of the back of the tube instead of throwing flames up against the inside of the tube. It's also why you will never see anyone fly backwards from getting a shotgun blast to the chest because in real life such a shotgun would also throw the person who fired it.

Depends on the weight of the Crossbow as well, more weight absorbs more energy.

The penetration code can be easily taken from the class DeagleFire.uc, just copy everything but the class extends line and default properties into your new gun.

I thought you said you didnt know? Anyway, thanks, but i dont see anything else other than Extends lines and Default properties.

Maybe this is the code?

Anyway, i have no idea how to tell the mutator to change all this, if its the usual way it will take soome work....oh dear
Code:
}

	X = Vector(Dir);
	End = Start + TraceRange * X;
	HitDamage = DamageMax;
	While( (HitCount++)<10 )
	{
        DamageActor = none;

		Other = Instigator.HitPointTrace(HitLocation, HitNormal, End, HitPoints, Start,, 1);
		if( Other==None )
		{
			Break;
		}
		else if( Other==Instigator || Other.Base == Instigator )
		{
			IgnoreActors[IgnoreActors.Length] = Other;
			Other.SetCollision(false);
			Start = HitLocation;
			Continue;
		}

		if( ExtendedZCollision(Other)!=None && Other.Owner!=None )
		{
            IgnoreActors[IgnoreActors.Length] = Other;
            IgnoreActors[IgnoreActors.Length] = Other.Owner;
			Other.SetCollision(false);
			Other.Owner.SetCollision(false);
			DamageActor = Pawn(Other.Owner);
		}

		if ( !Other.bWorldGeometry && Other!=Level )
		{
			HitPawn = KFPawn(Other);

	    	if ( HitPawn != none )
	    	{
                 // Hit detection debugging
				 /*log("PreLaunchTrace hit "$HitPawn.PlayerReplicationInfo.PlayerName);
				 HitPawn.HitStart = Start;
				 HitPawn.HitEnd = End;*/
                 if(!HitPawn.bDeleteMe)
				 	HitPawn.ProcessLocationalDamage(int(HitDamage), Instigator, HitLocation, Momentum*X,DamageType,HitPoints);

                 // Hit detection debugging
				 /*if( Level.NetMode == NM_Standalone)
				 	  HitPawn.DrawBoneLocation();*/

                IgnoreActors[IgnoreActors.Length] = Other;
                IgnoreActors[IgnoreActors.Length] = HitPawn.AuxCollisionCylinder;
    			Other.SetCollision(false);
    			HitPawn.AuxCollisionCylinder.SetCollision(false);
    			DamageActor = Other;
			}
            else
            {
    			if( KFMonster(Other)!=None )
    			{
                    IgnoreActors[IgnoreActors.Length] = Other;
        			Other.SetCollision(false);
        			DamageActor = Other;
    			}
    			else if( DamageActor == none )
    			{
                    DamageActor = Other;
    			}
    			Other.TakeDamage(int(HitDamage), Instigator, HitLocation, Momentum*X, DamageType);
			}
			if( (HCounter++)>=4 || Pawn(DamageActor)==None )
			{
				Break;
			}
			HitDamage/=2;
			Start = HitLocation;
		}
		else if ( HitScanBlockingVolume(Other)==None )
		{
			if( KFWeaponAttachment(Weapon.ThirdPersonActor)!=None )
		      KFWeaponAttachment(Weapon.ThirdPersonActor).UpdateHit(Other,HitLocation,HitNormal);
			Break;
		}
	}

    // Turn the collision back on for any actors we turned it off
	if ( IgnoreActors.Length > 0 )
	{
		for (i=0; i<IgnoreActors.Length; i++)
		{
            IgnoreActors[i].SetCollision(true);
		}
	}
}
 
Last edited:

YoYoBatty

FNG / Fresh Meat
Dec 17, 2009
3,460
2,502
0
Canada
lol dude you don't add that to the mutator. You have to copy all the weapon's code over from KFMod to your mod folder and make the mutator replace the old kf weapons with your new ones, don't ask me how this is possible.
 

EonSeig

FNG / Fresh Meat
Oct 13, 2010
260
93
0
Florida
Don't get me wrong, you've got a great concept here. I'm all for enhanced realism, as I'm actually quite fed up with many fps games today that just fail at realism (CoD).

But I'm going to stress the point right now that if you are dedicated to making the game as real as possible, many guns in Killing Floor are going to become overpowered, bar none. In real life, guns are not designed to be balanced, they are designed to be better than what the other guy's got.
 

timur

FNG / Fresh Meat
Don't get me wrong, you've got a great concept here. I'm all for enhanced realism, as I'm actually quite fed up with many fps games today that just fail at realism (CoD).

But I'm going to stress the point right now that if you are dedicated to making the game as real as possible, many guns in Killing Floor are going to become overpowered, bar none. In real life, guns are not designed to be balanced, they are designed to be better than what the other guy's got.

Which is why this mod needs a part 2:

Realistic Zeds:

Some of the Zeds attacks require some buffing for realism as well. just take the scrake: a chainsaw in your ribs is going to kill you, kevlar or no.
 

EonSeig

FNG / Fresh Meat
Oct 13, 2010
260
93
0
Florida
That, and Kevlar has virtually no effect on knives, claws, or blades. Only ceramic armor has any use against cutting and stabbing weapons.
 

CandleJack

FNG / Fresh Meat
Dec 2, 2009
3,399
1,059
0
VIC
Try and find Candlejack on this forum. He knows a little too much about guns. :)

CandleJack_by_snowdrak.png


You called?

BTW, i noticed you said the Desert Eagle fired .50AP.

It's .50AE. AE for Action Express; though it's also been called the .50 Magnum.

Though the Desert Eagle in Killing Floor fires .44 Magnum.
The Desert Eagle can fire .357 Magnum, .44 Magnum and .50AE (.50 Magnum), with 9, 8 and 7 rounds per mag; respectively.

Meaning that the action of the arrow going forward away from you exerts a force on the string of the bow which pulls the bow against your hand, therefore making a recoil. Rockets work by throwing flames out of the back of the tube instead of throwing flames up against the inside of the tube. It's also why you will never see anyone fly backwards from getting a shotgun blast to the chest because in real life such a shotgun would also throw the person who fired it.

Add to that the fact that a gun shoots a tiny piece of metal that's many times smaller than the gun itself. The sheer size and weight of the gun helps absorb recoil.
 

Trololololololololololo

FNG / Fresh Meat
May 6, 2010
110
35
0
CandleJack_by_snowdrak.png


You called?

BTW, i noticed you said the Desert Eagle fired .50AP.

It's .50AE. AE for Action Express; though it's also been called the .50 Magnum.

Though the Desert Eagle in Killing Floor fires .44 Magnum.
The Desert Eagle can fire .357 Magnum, .44 Magnum and .50AE (.50 Magnum), with 9, 8 and 7 rounds per mag; respectively.



Add to that the fact that a gun shoots a tiny piece of metal that's many times smaller than the gun itself. The sheer size and weight of the gun helps absorb recoil.

No, i said 50AP on purpose, because i could not remove its penetration ability, so i forced everybody to pretend that it was using Armor Piercing ammunition, i know the calibers originally available for DEs but thanks, worth the intention.

About the Zeds, i also wanted to change their stats but i dont have skill to change anything besides weapons basic stats, the most annoying part is how their health increase according to number of players, playing solo the guns have believable killing ability, but with 6 players the weapons just dont kill like should anymore, that is sooo irritating and i cant fix this.

Too many variables from perks and players number and dificulty chosen, it was a pain already to convert the price of everything according to perk discount, if could i would disable all perk features except the human side, and instead of increasing specimens health along with number of players, it would increase specimens maximum amount at same time on the level.

Even my Ultra Slow pentium 2180 (2ghz) and 8400gs (nvidia) plus only 1gb Ram computer can handle twice the game stock specimens number of 32.
 

Trololololololololololo

FNG / Fresh Meat
May 6, 2010
110
35
0
Final post, i am no longer releasing this mutator, thanks for those that helped a little with the code, but for 2 weeks had no players to help balance price, maybe Justinasrisk release his own version.

Goodbye.