Weight system and changing the RPG
2014-03-26, 06:41 PM (This post was last modified: 2014-03-27, 03:09 PM by dm.mossberg590a1.)
#21
RE: Weight system and changing the RPG
Wow I just figured out how to add the weights from multiple weapons together but I forgot how I did my weight system before -_-....

Because the speedhack detection speed works completely different from calculating the speed normally (speedhack detection uses a clientstate variable whereas normally it uses a playerent which gives you more information), I had to make my own function for calculating the speedhack gunspeed for all weapons. However, I finally got it to work most of the time!!

I don't understand why the speedhack gives a speedboost if your perk is lightweight whereas normally you get a speedboost if your perk is agile.... that screws up my speedhack detection and it doesn't factor in multipliers but for most weapons the speedhack detection speed is exactly the same as the normal speed. Three exceptions:

Knife
Heal gun
Pistol

For some reason for these weapons the normal speed gets faster than the speedhack speed :/... Well I'm going to sleep now but I posted my changes in my repository under the weight-system branch.

EDIT: It works now with every weapon and throwing away grenades now gives a speed boost. I changed the speedhack perk from checking for the LIGHT perk to checking for the AGILE perk which fixed the speed problems.

[Image: name_zps459dc421.gif]
[Image: cooltext1206791925_zps58ab60b5.gif]

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." - Bjarne Stroustrup
Post Reply Quote this message in a reply
2014-03-27, 07:10 PM
#22
RE: Weight system and changing the RPG
Sounds good! Can't wait for it to be implemented!

DSO
Windows 8 fanboy =D
"Not dead, can't quit"
Post Reply Quote this message in a reply
2014-03-27, 10:15 PM
#23
RE: Weight system and changing the RPG
I also added in magazine weights for each gun so the more extra mags the player has in each of his weapons can affect his speed. Also grabbing more grenades can slightly slow you down, and throwing them away slightly increases your speed.

[Image: name_zps459dc421.gif]
[Image: cooltext1206791925_zps58ab60b5.gif]

"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off." - Bjarne Stroustrup
Post Reply Quote this message in a reply
2014-03-28, 01:46 PM
#24
RE: Weight system and changing the RPG
Realistic representation of the effects of weight on humans in real life.

DSO
Windows 8 fanboy =D
"Not dead, can't quit"
Post Reply Quote this message in a reply
2014-03-28, 01:52 PM
#25
RE: Weight system and changing the RPG
Fuck em mags,You should make the armor really heavy.And please could You remove the fast running while holding forward and then a left or right button!

[Image: 3SVsNlV.png]
Post Reply Quote this message in a reply
2014-06-23, 10:10 AM
#26
RE: Weight system and changing the RPG
Gravity?

God must love stupid people. He made so many.
->unknown

[Image: 8VEZK0Q.gif]
Post Reply Quote this message in a reply
2014-06-23, 02:33 PM
#27
RE: Weight system and changing the RPG
If you make ammo heavy, you should increase its effect. Or create a "Rambo" Perk that makes you ignore all the weight Tongue

The C Programming Language: combines the flexibility of assembly language with the power of assembly language.
Post Reply Quote this message in a reply
2014-06-23, 02:48 PM
#28
RE: Weight system and changing the RPG
I like the idea of that Rambo perk

God must love stupid people. He made so many.
->unknown

[Image: 8VEZK0Q.gif]
Post Reply Quote this message in a reply
2014-06-23, 02:49 PM
#29
RE: Weight system and changing the RPG
Or perhaps the lightweight perk can allow you to count only half the weight (or some other multiplier).

Best regards,
Victor
//victorz.ca
Code:
Your antithesis compares favorably with any high magnitude of pwnage. (-you > |p|, you < -|p|)
My antithesis compares favorably with _that of_ any high magnitude of pwnage. (|-me| > |-p|, |me| > |p|)
Post Reply Quote this message in a reply
2014-06-23, 03:11 PM (This post was last modified: 2014-06-23, 03:12 PM by Fru5tum.)
#30
RE: Weight system and changing the RPG
But need to get rid of that • less falling damage• weapons heavy you gunna fall
as far as I know in the code it'll just tell you " you fell this distance x+y-distance blah blah = damage taken weight system means your weight directly influences your falling damage and speed and with that topic if you havnt notice ( MAJOR EXAMPLE) is that you guys are suggest different guns have different weights most of us here have our pic of guns and barley use some which means we have our sorta " class" the idea is in most games if u have a machine gun you obese Smile snipers are skinny , medics skinny so for instance a gun stripped sniper wieghs 180 lbs and Gunner wieghs 220 see the point? If I use a machine gun not only am i slow cuase of the bigass gun but I'm also fat Wink if I have a sniper im a bit faster but thats before you relize that most sniper rifles are 25+ lbs

God must love stupid people. He made so many.
->unknown

[Image: 8VEZK0Q.gif]
Post Reply Quote this message in a reply


Forum Jump: