View unanswered posts | View active topics It is currently Tue Jan 07, 2025 1:35 am



Reply to topic  [ 6 posts ] 
 Weapon Coding Help 
Author Message

Joined: Tue Feb 02, 2010 11:36 pm
Posts: 130
Reply with quote
Post Weapon Coding Help
Hello again, mod making. Just a simple question. Which property/ies would I edit in a weapon to make the round deal more damage, hit harder, be sharper, etc? it's a noobish question, but on the bright side, I only need to ask once.

I'm currently practicing my modding by working on the begginnings of a Team Fortress 2 mod, with pandastar994.


Mon Apr 12, 2010 3:49 am
Profile

Joined: Sun Oct 25, 2009 10:16 pm
Posts: 110
Location: Western U.S.
Reply with quote
Post Re: Weapon Coding Help
Increase mass or Sharpness. Sharpness varies the amount of damage it will inflict on an actor. Mass varies how heavy or dense it is. (affects terrain) http://wiki.datarealms.com/wiki/index.php/HDFirearm


Mon Apr 12, 2010 4:37 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Weapon Coding Help
Sharpness determines the strength/penetration of the round, not the amount of damage it will inflict.

Actors are made of a certain material with certain set properties. If the bullet's sharpness is a certain value, it can either:
a) bounce off harmlessly
b) make an entry wound
c) make an exit wound

The velocity and mass of the bullet are also taken into effect when calculating what wound is made.


Mon Apr 12, 2010 5:24 am
Profile

Joined: Tue Feb 02, 2010 11:36 pm
Posts: 130
Reply with quote
Post Re: Weapon Coding Help
Hmm... I'm trying to design a one-shot rifle, with a spin-up time, and absurdly powerful rounds. i based it off of the Heavy Sniper rifle. It sees to make cortex command, not in the loading, but when i try to play a mission. The screen just goes black and freezes. Can anyone see what is wrong with this code?


Attachments:
SniperRifle.ini [8.38 KiB]
Downloaded 149 times
Mon Apr 12, 2010 5:58 am
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Weapon Coding Help
The name of the weapon is too long. Shorten it to less than I think it's 11 characters.


Mon Apr 12, 2010 6:02 am
Profile

Joined: Tue Feb 02, 2010 11:36 pm
Posts: 130
Reply with quote
Post Re: Weapon Coding Help
Thanks whitty! it's working now, but... I was trying to give it a spin-up time, but it doesn't seem to be working.

EDIT: NEver mind, forgot to code it in. God I'm dumb...


Mon Apr 12, 2010 6:30 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.049s | 14 Queries | GZIP : Off ]