Need help creating custom ammo/projectiles

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Need help creating custom ammo/projectiles

Postby Giger » Sun Dec 20, 09 7:59 pm

Hey everyone, I'm very new to all this modding business, and I'm having trouble with two things:

First, I tried creating a sniper rifle that fired tranq darts, and suceeded, but the dart fly range is the same as it was in the minicrossbow. I tried changing the projectile default properties, but I didn't find anything that worked.

My question is: How can I extend the flight range of the tranq darts?


Second, I've been trying to create rubber bullets for the shotgun, shells that knock foes unconscious instead of killing them, but I've been unable to find out how to change ammo properties at all.

So my second question is: how can I modify ammo to make it non lethal?

Thank you in advance for all your help ;)
Giger
Newbie
 
Posts: 2
Joined: Sun Dec 20, 09 7:52 pm

Postby ~[ß]Lost~ » Sun Dec 20, 09 10:49 pm

I think for all that you will need a custom projectile class. I'm most likely wrong though, I only do mapping.
Sike
clanb.deus-ex.net

Legion wrote:By default, I'm bi. However I've spent a great deal of time "burying" that aspect of me...
~[ß]Lost~
Poster
 
Posts: 240
Joined: Sat Dec 27, 08 1:06 am
Location: Finland

Postby Allan » Sun Dec 20, 09 11:00 pm

~[ß]Lost~ wrote:I think for all that you will need a custom projectile class.


Yep, you do.
There's two ways to increase shot length in projectiles.

1: There's two variables that control range in projectiles. Unfortunately, I can't remember them off-hand.
2: Make Tick() do nothing. At all.

To do 2, stick this code into the new projectile class code:

Code: Select all
function Tick(float Deltatime)
{}


If you want people KO'd instead of dead by the darts, when you get the custom projectile class made, stick this in the defaultproperties section.

Code: Select all
damageType=KnockedOut


Make a projectile class off of Dart with those bits in the code tags, and you should have a dart that will fly forever and knock people out on contact.
User avatar
Allan
Alpha
 
Posts: 4545
Joined: Wed Dec 21, 05 1:41 pm
Location: Northamptonshire, England.

Postby Giger » Sun Dec 20, 09 11:10 pm

Thank you very much for your help, I'll try that later :wink:
Giger
Newbie
 
Posts: 2
Joined: Sun Dec 20, 09 7:52 pm


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 13 guests
cron