Data Realms Fan Forums http://45.55.195.193/ |
|
Attachbles to Weapons (Possible Types) http://45.55.195.193/viewtopic.php?f=1&t=13620 |
Page 1 of 1 |
Author: | hideokuze [ Thu Jan 29, 2009 11:08 pm ] |
Post subject: | Attachbles to Weapons (Possible Types) |
Anyone know every kind of attachable allowed on a weapon? I know: Attachable AEmitter (AddAemitter) I tried HDFirearm out of curiosity and threw an error |
Author: | Azukki [ Fri Jan 30, 2009 2:14 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
hideokuze wrote: Attachable AEmitter (AddAemitter) Well, then you've got this down. Attachables and AEmitters, that's all. |
Author: | hideokuze [ Sat Jan 31, 2009 4:50 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
then i guess ill try to make an aemitter activated by something to act as an attachable as in grenade launcher, or shotgun when the gun is being reloaded |
Author: | Meteormike [ Sat Jan 31, 2009 9:21 pm ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
... |
Author: | Geti [ Sat Jan 31, 2009 11:57 pm ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
first of all, go to your item code and add Code: Buyable = 0 then, assuming it's a HDFirearm, add this to your actor code: Code: AddInventory = HDFirearm CopyOf = Weapon Name Here |
Author: | Meteormike [ Sun Feb 01, 2009 2:03 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
... |
Author: | zalo [ Sun Feb 01, 2009 2:08 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
You forgot the Magazine. |
Author: | Meteormike [ Sun Feb 01, 2009 4:45 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
What? Oh Zalo, lord of the replicating coalition, god of the Air-Shark, please tell me what to do. |
Author: | MaGmA [ Sun Feb 01, 2009 4:50 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
I believe zalo was referring to the first post. |
Author: | Meteormike [ Sun Feb 01, 2009 4:56 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
... |
Author: | Geti [ Sun Feb 01, 2009 5:44 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
i gave you exact instructions. you put buyable = 0 into the weapon code (wherever you've got the code for the weapon), and then add it to the actor's inventory with the AddInventory line. read your instructions my good man. and yes for ♥♥♥♥ sake use the presetname, its the only name the game knows for copyofs. |
Author: | Zinc [ Sun Feb 01, 2009 5:57 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
This is a piece of code taken from Crobotech. AddActor = AHuman CopyOf= CR-Tech InstanceName = Tech LR-5000 AddToGroup = Crobotech Outfitted AddInventory = HDFirearm CopyOf = LR-5000 As you can see, that's all there is too it. Just make sure the weapon you are adding to the character's inventory has it's code read before the actor. So, if they're in the same folder, make the Index.ini scan the weapon's folder first. For the attachable... I suck at those. So... don't ask me about attachable. |
Author: | Meteormike [ Sun Feb 01, 2009 7:15 pm ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
... |
Author: | Geti [ Tue Feb 03, 2009 12:05 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
ahah. make your index.ini read your weapons before your actors. so basically, assuming your weapons index is in mod.rte/weapons/index.ini and your actors index is at mod.rte/actors/index.ini, the code should be in this order in your main datamodule. Code: IncludeFile = mod.rte/weapons/index.ini IncludeFile = mod.rte/actors/index.ini this makes sure that the weapons are all defined before they are needed by the actors. |
Author: | Meteormike [ Tue Feb 03, 2009 5:08 am ] |
Post subject: | Re: Attachbles to Weapons (Possible Types) |
... |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |