Author Topic: Item Weight  (Read 903 times)

As I was building my TDM I was thinking about how it was somewhat "cheap" as to how you can carry an assault rifle lmg and sniper rifle all at once. I don't know much about scripting and all of that but I was wondering if it was possible to make something that checks the size of the item and depending on its size it would weigh your player down and make him run slower.
Again I don't know if this is even possible but if it is someone should make it.

I believe it would be possible.


I believe it would be possible.

By taking generic given dimensions which, in noob mods, might be wrong. Slowing then down might require datablock changes... or a setting change, that might work too.

Meh.

I'm wondering if this would actually depend on the weapons script for something like this to work, not just a certain playertype.

I'm wondering if this would actually depend on the weapons script for something like this to work, not just a certain playertype.

What you just said was two completely different things. One was how the weapon would give the indication of weight, and the other was about how to make the player react to it. You can't compare those in a statement.

What you just said was two completely different things. One was how the weapon would give the indication of weight, and the other was about how to make the player react to it. You can't compare those in a statement.
Well I don't script much, but I was just trying to say that this probably would depend on a playertype.

The weapon and the player are two different things. We are working on the interaction, but changing only one of them won't magically change the other.

The thing is, the game doesn't calculate object sizes openly much. I'm saying you might have to work with box variables and stuff in the code to interpret a weight, then adjust player speed to match a value. Problem with this is people don't code most weapons right. It'd be incredibly difficult to make this function with all weapons. You'd have to set each weapon with it.

The weapon and the player are two different things. We are working on the interaction, but changing only one of them won't magically change the other.

The thing is, the game doesn't calculate object sizes openly much. I'm saying you might have to work with box variables and stuff in the code to interpret a weight, then adjust player speed to match a value. Problem with this is people don't code most weapons right. It'd be incredibly difficult to make this function with all weapons. You'd have to set each weapon with it.
Exactly.

playertype doesn't matter i don't think, it can just run a check on your speed and slow you down, or look at how the laser minigun does it