IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Post mod/code requests in the Mod Requests topic

Post mod releases in the Mod Showroom

Read the Modding Rules BEFORE posting!

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Idk what to do now....

 Dingo's Drug Mod
 
bkajun06  
Posted: Wednesday, Jun 27 2012, 21:19
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Sep 24, 2006

XXXXX



Okay, so I'm kind of pissed that GTA IV doesn't have a drug mod and it's been out since 2008.. I figured I'd try and get back into modding, but since I haven't modded anything for damn near 6 years - I forgot how to do it... (not saying I was good, but I understood how to do sh*t)

I got .NET Reflector and opened up Dingo's Drug Mod trying to see if I could do/remember anything about scripts. But I fail. Is there anyone here that can help get this sh*t to work?

There's tons more code for this when I click on the assemblies line for each string, and it makes sense(I mean, I can understand it's actions), but I don't know how to basically rewrite it.

If anyone thinks they can redo the famous, Dingo's Drug Mod and make it work for at least 1.0.4.0, please post in this thread and I can give you the rest of the code.



CODE
public DingosDrugMod()
{
   this.RandomMax = 0x4b;
   this.TickLock = true;
   this.TickLock2 = true;
   this.TickLock3 = true;
   this.animbuyandsell = new AnimationSet("amb@drugd_sell");
   this.animwaitforcustomer = new AnimationSet("amb@drugd_idl_b");
   this.animmale = new AnimationSet("gestures@male");
   this.droppoint1 = new Vector3(-1531.57f, 469.66f, 18.53f);
   this.droppoint2 = new Vector3(743f, -207f, 8.88f);
   this.droppoint3 = new Vector3(-232.02f, 708.22f, 2.45f);
   this.droppoint4 = new Vector3(1175.31f, 1708.77f, 15.66f);
   this.droppoint5 = new Vector3(39.27f, 120.68f, 13.96f);
   this.droppoint6 = new Vector3(1489.23f, 563.76f, 28.77f);
   this.drugdealpoint1niko = new Vector3(-195.5f, 1380.31f, 19.31f);
   this.drugdealpoint1buyer = new Vector3(-196.75f, 1380.35f, 19.38f);
   this.drugdealpoint2niko = new Vector3(-406.37f, 99.98f, 9.13f);
   this.drugdealpoint2buyer = new Vector3(-406.37f, 102.19f, 9.06f);
   this.drugdealpoint3niko = new Vector3(-863.34f, 1312.4f, 20.98f);
   this.drugdealpoint3buyer = new Vector3(-863.29f, 1310.75f, 20.98f);
   this.drugdealpoint4niko = new Vector3(-1539.16f, 165.44f, 9.49f);
   this.drugdealpoint4buyer = new Vector3(-1537.38f, 166.01f, 9.49f);
   this.drugdealpoint5niko = new Vector3(1695.35f, 668.63f, 27.76f);
   this.drugdealpoint5buyer = new Vector3(1697.36f, 668.87f, 27.62f);
   base.set_Interval(250);
   base.add_Tick(new EventHandler(this.TickTock));
   base.add_Tick(new EventHandler(this.AssassinTick));
   base.add_Tick(new EventHandler(this.AmbushTick));
   base.add_Tick(new EventHandler(this.PickUpTick));
   base.BindKey(Keys.N, new KeyPressDelegate(this, (IntPtr) this.OfferDrugs));
   base.BindPhoneNumber("555 DRUG", new PhoneDialDelegate(this, (IntPtr) this.CallSupplier));
   this.Buyer = null;
   this.GramsLeft = 0;
}


PM
  Top
 

 
sukmydik  
Posted: Friday, Jun 29 2012, 01:21
Quote Post


Player Hater
Group Icon
Group: BUSTED!
Joined: Jun 29, 2012

XXXXX



just have all your initializers modulate incoming user inputs and make sure that you null all valid values before calling your subroutines and analyzers
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG