Need help with automatic weapons coding.

A refuge for those migrating from the fallen DXEditing.com and a place for general discussion relating to Deus Ex editing (coding, mapping, etc).
Post Reply
miguel
UNATCO
Posts: 160
Joined: Tue Oct 12, 2010 10:35 pm
Location: Acheron LV-426 Hadley's Hope

Need help with automatic weapons coding.

Post by miguel »

Just want to have them work like in "2027". Anyone knows how is that made?

Another question:
Is posible to fire 2 shots at the same time? I'm working on a double-barreled shotgun.
miguel
UNATCO
Posts: 160
Joined: Tue Oct 12, 2010 10:35 pm
Location: Acheron LV-426 Hadley's Hope

Re: Need help with automatic weapons coding.

Post by miguel »

Problem solved!
It was a combination of a short animation sequense for the mesh ( 2 frames ) at a fast rate, and a longer "shoot time" duration.
For the double shotgun, I will set it in automatic to give the illusion of firing 2 shells at the same time.

Another noob question:
How can I show images in my posts instead of links?

Thanks.
G-Flex
Silhouette
Posts: 621
Joined: Mon Jul 11, 2011 10:16 pm

Re: Need help with automatic weapons coding.

Post by G-Flex »

A weapon firing multiple shots per click should be easy. In fact, Deus Ex already does this with both the shotguns and the plasma rifle. Requiring more than one piece of ammo per click/shot is probably possible as well, although I'm not sure how to best accomplish that; probably just by overriding the functions responsible for ammo usage and for checking ammo.
miguel
UNATCO
Posts: 160
Joined: Tue Oct 12, 2010 10:35 pm
Location: Acheron LV-426 Hadley's Hope

Re: Need help with automatic weapons coding.

Post by miguel »

The automatic mode is ok. cause the fire sound plays only one time while firing the two shotgun shells very fast.
Thank you.
Post Reply