source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

How can I disable economics in TF2 source code?

Open dreadcraftteam opened this issue 10 months ago • 5 comments

I recently found out that it is possible to disable economics in the new tf2 source code, but how?

dreadcraftteam avatar Mar 02 '25 06:03 dreadcraftteam

remove these 2 lines

https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/server/server_tf.vpc#L12

https://github.com/ValveSoftware/source-sdk-2013/blob/a62efecf624923d3bacc67b8ee4b7f8a9855abfd/src/game/client/client_tf.vpc#L17

Nbc66 avatar Mar 12 '25 10:03 Nbc66

thx

dreadcraftteam avatar Mar 12 '25 14:03 dreadcraftteam

Removing those 2 lines just give me these build errors, how do I fix them?

Image

ByAnonymus avatar Mar 15 '25 12:03 ByAnonymus

Regenerate project files via launching createallprojects.bat I guess?

UAVXP avatar Mar 15 '25 16:03 UAVXP

Regenerate project files via launching createallprojects.bat I guess?

i tried, doesn't work

ThePixelMoon avatar Mar 19 '25 18:03 ThePixelMoon

Heyo. I am quite late to this, not sure if this will help, I think I've gotten what you needed: Removing USES_ECON_ITEMS in client_tf.vpc. It's at line 26.

This seemed to compile for me.

Edit (again): I am not sure if this WILL disable economics or econ items at all. I haven't tested this yet. I may edit this again after and if I do. Edit final: Doing this didn't seem to do anything. I'll try to figure how to disable economics.

Snow2CodeLegacy avatar May 02 '25 09:05 Snow2CodeLegacy

Replying to https://github.com/ValveSoftware/source-sdk-2013/issues/923#issuecomment-2846812130

Ok

dreadcraftteam avatar May 02 '25 14:05 dreadcraftteam