Data Realms Fan Forums
http://forums.datarealms.com/

Dual wielding shotguns
http://forums.datarealms.com/viewtopic.php?f=75&t=30765
Page 1 of 2

Author:  Magmacow358 [ Sat Mar 24, 2012 11:17 pm ]
Post subject:  Dual wielding shotguns

Any mods that add this? If not, anyone mind making one? Preferably powerful sawn off/lever action shotguns.

For that matter, can anyone suggest mods that allow dual wielding of automatic weapons? (Aside from PA and MDC)

Author:  Miggles [ Sun Mar 25, 2012 3:10 am ]
Post subject:  Re: Dual wielding shotguns

It's very easy.
Find any weapon you wish to be dual wieldable, press Ctrl+F and look for OneHanded = 0.
Because CC's variables tend to run off of simple Boolean on or off states, you can change the 0 to a 1 and buy 2 of the guns to dual wield.

If the OneHanded = 0 isn't in the code, then go to the section of the gun's defining right under the sounds that has the rate of fire, reload time, etc., and add it in between any of those.

Author:  Kettenkrad [ Sun Mar 25, 2012 4:35 am ]
Post subject:  Re: Dual wielding shotguns

What Miggles said, but you also have to add the line 'AddToGroup = Shields' somewhere in a duplicate of the weapon's code.

Best way to do this is copy the entire chunk of code, duplicate it, change the name of the second gun to "[weaponname] offhand" - or something - and add the 'AddToGroup' and 'OneHanded' lines.

Author:  Magmacow358 [ Sun Mar 25, 2012 8:10 pm ]
Post subject:  Re: Dual wielding shotguns

The offhand weapons dont seem to be appearing in the buymenu.

And yes, I included them in the index file.

Author:  Kettenkrad [ Mon Mar 26, 2012 12:34 pm ]
Post subject:  Re: Dual wielding shotguns

Did you change the names? Check under both 'Shields' and 'Guns'?

Author:  olo [ Thu Aug 09, 2012 7:53 pm ]
Post subject:  Re: Dual wielding shotguns

I am trying those instruction but they don't work , CC crashed when loading , ok this is f* up , even when I change and come back to previous it gaves error

Author:  Miggles [ Sat Aug 11, 2012 9:41 am ]
Post subject:  Re: Dual wielding shotguns

Give us the error.

Author:  olo [ Sat Aug 11, 2012 9:05 pm ]
Post subject:  Re: Dual wielding shotguns

it just stops loading on the (some weapon).ini file

Author:  Miggles [ Sat Aug 11, 2012 11:31 pm ]
Post subject:  Re: Dual wielding shotguns

Miggles wrote:
Give us the error.

Author:  olo [ Sun Aug 12, 2012 12:35 am ]
Post subject:  Re: Dual wielding shotguns

I can't copy it , it's just windows error

Author:  Kettenkrad [ Sun Aug 12, 2012 2:13 am ]
Post subject:  Re: Dual wielding shotguns

Screenshot it with PrintScreen or something, unless you mean the program stops responding. In that case you've got a CopyOf to something that doesn't exist.

Author:  olo [ Mon Aug 13, 2012 12:51 am ]
Post subject:  Re: Dual wielding shotguns

Ok I tried with MDC revolver and it worked , but when I tried with gatling gun there was error "Could not understand preset type"

Author:  Asklar [ Mon Aug 13, 2012 12:54 am ]
Post subject:  Re: Dual wielding shotguns

olo wrote:
"Could not understand preset type"


If I'm not wrong, you get that error when you write a property wrong, like instead of CopyOf you type Copyof.

Author:  olo [ Mon Aug 13, 2012 2:09 am ]
Post subject:  Re: Dual wielding shotguns

I checked twice , but this is hilarious because when I went back to orginal code(deleted changes) and it gave me the same error lol spooky , maybe I can't get gatling guns to work because they are two handed or something?

Author:  Asklar [ Mon Aug 13, 2012 2:16 am ]
Post subject:  Re: Dual wielding shotguns

Well, you've got to make sure you used OneHanded = 1 to make a weapon dual-wieldable, but still, that error points to wrong typed variables or incorrect type of information on a variable, if I'm not mistaken.

Though, it would be easier if we could see the code.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/