[ H3LP ] Knife ?
Hello, does anyone have the .cpp of knife? I need to understand how the sounds are emitted, as the damage is inflicted... Anyway, all the functionality of the knife.
|
Re: [ H3LP ] Knife ?
Look on regamedll: wpn_knife.cpp
|
Re: [ H3LP ] Knife ?
|
Re: [ H3LP ] Knife ?
Good, what I tried to do was:
Code:
However, my code is with the following problems: - when I attack the player, no matter what part of the body, it is always inflicted damage to the head rather than the affected area. - when I attack a box (in the Cs_assault, a blue box, for example) or the floor, the sound "hit_wall" is not emitted, instead, the "slash" is being emitted. - in some entities, the damage is only inflicted if I really pull it over, and if I'm crouching at the same time. Were these the problems I could identify, any idea? |
Re: [ H3LP ] Knife ?
Quote:
|
Re: [ H3LP ] Knife ?
The problem is not in the model, because I tested with the other weapons, including the knife itself, and presented no problem.
|
Re: [ H3LP ] Knife ?
|
All times are GMT -4. The time now is 03:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.