SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: swbfgamtemp on May 20, 2020, 07:31:25 AM

Title: How to make a weapon unbalance the enemy?
Post by: swbfgamtemp on May 20, 2020, 07:31:25 AM
.
Title: Re: How to make a weapon unbalance the enemy?
Post by: Dark_Phantom on May 20, 2020, 08:13:37 AM
That's what the forums are for, asking for and finding help.  Sometimes the answers may be found easily by searching, others aren't so easy - if you don't find it in the search bar, then make a topic.  In this case, the answer was not obvious, but how grenades handle it is in the _exp (explosion) files.  If you are just editing, this is the place to look.


Push   = "10.0" //how hard the explosion will "push the player", this results in knocking them down
PushRadiusInner   = "4.5" //inner radius (distance from center) of push, most powerful
PushRadiusOuter   = "4.5" //outer radius of push, less powerful, but in this case it's the same.


You can see in haywiregrenade_exp (Republic) this is nulled out, which is why the Clone Trooper's EMP grenade doesn't knock anyone over.

If you are trying to add it to something else, you'll have to look and see how the game handles these things - weapon itself, ordinance (bullets/etc), then explosions.
Title: Re: How to make a weapon unbalance the enemy?
Post by: wsa30h on May 20, 2020, 08:36:44 AM
some of serejas weapons have this i think tehy would be a good example to look at.
Title: Re: How to make a weapon unbalance the enemy?
Post by: swbfgamtemp on May 20, 2020, 08:44:29 AM
.
Title: Re: How to make a weapon unbalance the enemy?
Post by: swbfgamtemp on May 20, 2020, 09:35:13 AM
.
EhPortal 1.34 © 2024, WebDev