[CS:GO] Altering weapon run speed values
Hey all, I've been lurking here for a while but finally decided to make an account! I'm fairly new to scripting so I thought this might be a good place to ask for advice.
In this case, I was wondering about the weapon run speed values in GO (listed here: http://forums.steampowered.com/forum....php?t=2591368) If I wanted to modify a value or two on that list, would I be required to script something for it? I'm asking because I haven't been able to find any good knife run speed plugins, but I almost feel like I'm overcomplicating this whole thing. I have some more questions, but I figure I should start out with the most noobish ones first. Thanks all. |
Re: [CS:GO] Altering weapon run speed values
In CS, different weapons have different maximum movement speed, so you can do this:
PHP Code:
PHP Code:
So if you just need a faster speed when you are hoding a knife, you can try this: PHP Code:
|
Re: [CS:GO] Altering weapon run speed values
First off: Thanks a ton apocalyptic. I have my code written out but I have a couple errors (honestly, I'm sure they're probably huge noob errors too).
The main thing, I think, is the SetClientSpeed. spcomp.exe says that it's an undefined symbol. The error is as written: error 017: undefined symbol "SetClientSpeed" Thanks again. |
Re: [CS:GO] Altering weapon run speed values
Sorry, I forgot somthing. :-(
You need to add this below: PHP Code:
PHP Code:
|
Re: [CS:GO] Altering weapon run speed values
Awesome, thank you! No errors anymore, either (just a couple warnings). A quick question though, if I wanted to also add in SetEntityGravity, how would I go about this? When I put in both conditions (speed and gravity) I get an error 029 on the if/else. I'm guessing it's another noob formatting thing.
Thanks again, and your English is pretty good ;) |
Re: [CS:GO] Altering weapon run speed values
Like speed, you can set a custom gravity too. 1.0 is normal. If you set an entity's gravity to 0.0, it will never fall.
But you don't need to make a custom function for this, SourceMod already had one. PHP Code:
|
Re: [CS:GO] Altering weapon run speed values
After spending some time tinkering with things it works perfectly now. Thanks a bunch apocalyptic. Couldn't have done it without you.
|
Re: [CS:GO] Altering weapon run speed values
hiiii,
would you please please please make this as a plugin for me? I really want this and I don't know how to write a script or make a plugin. thanks very much in advance. |
Re: [CS:GO] Altering weapon run speed values
Quote:
|
Re: [CS:GO] Altering weapon run speed values
So in CSGO I can't modigy users speed in Hook_WeaponSwitchPost?!
Spoiler
And what difference with m_flLaggedMovementValue and m_flMaxspeed? |
All times are GMT -4. The time now is 01:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.