Vintage88 Posted February 21, 2013 Share Posted February 21, 2013 (edited) 1) Is there an easy way to switch all police and SWAT to be unarmed? Say through modifying something like pedpop.dat or whichever file would control such things. if not 2) Is there a way to modify weapons.xml so pistol, police shotgun and M4 will behave as if you are meleeing? if not 3) Is there a mod out there that achieves such an effect? Either police unarmed or those weapons as melee. Edited February 21, 2013 by Vintage88 Link to comment Share on other sites More sharing options...
pedro2555 Posted February 21, 2013 Share Posted February 21, 2013 1) Is there an easy way to switch all police and SWAT to be unarmed? Say through modifying something like pedpop.dat or whichever file would control such things. if not 2) Is there a way to modify weapons.xml so pistol, police shotgun and M4 will behave as if you are meleeing? if not 3) Is there a mod out there that achieves such an effect? Either police unarmed or those weapons as melee. A suggest you to ask this somewhere else, like in other requests or something. That is possible programatically but it's not the best approach. Link to comment Share on other sites More sharing options...
TheLastStarFighterOfPlanetXenon Posted February 22, 2013 Share Posted February 22, 2013 that's easy i write right now... namespace UnarmCops{ using System; using System.Windows.Forms; using GTA; public class Main : Script { public Main() { BindKey(Keys.F6, ToggleScript); Tick += Main_Tick; } private bool toggle; private void ToggleScript() { toggle = !toggle; Game.DisplayText("Cops " + (toggle ? "Unarmed" : "Armed")); } private void Main_Tick(object sender, EventArgs e) { if (!toggle) return; foreach (Ped ped in World.GetAllPeds()) { if (!Game.Exists(ped)) continue; if (ped.PedType == PedType.Cop) ped.Weapons.RemoveAll(); } } }} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now