New weapon help??

Got problems with your models? Struggling with textures? Get help with your custom assets.

New weapon help??

Postby Iamthaguvna on Sun Jan 07, 2007 11:54 pm

First Off... I'm new to this forum, and fairly new to modding for that matter, so if im in the wrong topic area please let me know.

I wanted to make a new crowbar which hit fast and hard and from far away. So I followed the tutorial from Interlopers on adding a new weapon, which was actually really nice.
when it came to the creation of the coding I copied weapon_crowbar.cpp and weapon_crowbar.h and renamed it to weapon_supercrowbar.cpp and such. I then proceeded to rename all references to crowbar to supercrowbar so there wasnt a conflict. It compiles just fine now.

I got my crowbar up and running... and im able to use it in game, with one problem... I cannot actually damage any enemy!
It shows blood spot on the NPC wherever i hit it, but no blood flies onto the ground. Even wierder yet... I can kill a headcrab with my crowbar, but no blood comes out of it, where otherwise blood would splat.

The error in the console reads:
Code: Select all
AddMultiDamage:  g_MultiDamage.GetDamageForce() == vec3_origin
CBaseEntity::TakeDamage:  with inputInfo.GetDamageForce() == vec3_origin


If anyone has any suggestions please help?
Thanks in advance!
Iamthaguvna
Regular
Regular
 
Joined: Sun Jan 07, 2007 11:42 pm
Location: Oregon

Postby The Watcher on Sun Jan 07, 2007 11:59 pm

Wrong board, this is more suitable to Modelling or Level-Design.

On-Topic: I can't help you with this, as I know nothing about these things. Yet... :?
The one and only anti-Interloper

This forum is an evil negativity-brewing hellhole, like all internet communities, and should be shut down...
The Watcher
Banned
 
Joined: Sat Jul 16, 2005 8:13 pm
Location: Destroying evil forums like this one

Postby Iamthaguvna on Mon Jan 08, 2007 12:01 am

Alright... will a mod move it or should i copy and paste it somewhere else? heh...
sorry :oops:
Thanks for the speedy reply though :D
Learning... bear with me?
Knows XHTML, XML, CSS, VB, ASP.NET, Java
Learning C++
Image
Iamthaguvna
Regular
Regular
 
Joined: Sun Jan 07, 2007 11:42 pm
Location: Oregon

Postby mr greenfish on Mon Jan 08, 2007 12:39 am

each weapon has their own damage type which goes in the code and then finally in the cfg/skill.cfg file

you should look up all the damage info for the crowbar and base your own damage info from that.
Image Available now
User avatar
mr greenfish
1337 p0st3r
1337 p0st3r
 
Joined: Sat Dec 04, 2004 12:05 pm

Postby Iamthaguvna on Mon Jan 08, 2007 1:03 am

mr greenfish wrote:each weapon has their own damage type which goes in the code and then finally in the cfg/skill.cfg file

you should look up all the damage info for the crowbar and base your own damage info from that.


YES!
I new it had something to do with sk_npc_dmg Thank you so much!!!
mr. greenfishYou're the one who wrote the Tutorial I'm talking about aren't you? Very nice job. Helped a lot.
Learning... bear with me?
Knows XHTML, XML, CSS, VB, ASP.NET, Java
Learning C++
Image
Iamthaguvna
Regular
Regular
 
Joined: Sun Jan 07, 2007 11:42 pm
Location: Oregon

Postby mr greenfish on Mon Jan 08, 2007 11:07 am

no problem, glad it helped you
Image Available now
User avatar
mr greenfish
1337 p0st3r
1337 p0st3r
 
Joined: Sat Dec 04, 2004 12:05 pm

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users