Jump to content

Home

Changing movement speed in MP


Homeboy

Recommended Posts

First, I'm really new to any editting other than binding keys so please forgive me if I'm being silly.

 

What I want to do is modifying walking/running speed so that people run backwards slower. This could help the bot and make running backwards and backstabbing less effective. It's more reallistic, too.

 

Where should I start? The editting guides are mostly about mapping or making skins.

 

And also I'd like to make people turn slower when doing any saber swing. Like when you do a blue lunge or red DFA it freezes your direction. Because one can do a swing and spin like mad which isn't very reallistic, either.

 

Any hints what I should look into? Thanks in advance!

Link to comment
Share on other sites

I mean, I have the SDK & source, but there are lots of files with complex corelations. The "Make a MOD" readme made it look real simple to only change a value or two. So where is it in the source?

 

About the console command I heard of the one which slows all motion down but that's not what I want. Please tell me if you're refering to some other command.

 

I still have two months of summer vacation for this; I hope to learn some programming while working on it.

Link to comment
Share on other sites

Originally posted by Homeboy

What I want to do is modifying walking/running speed so that people run backwards slower. This could help the bot and make running backwards and backstabbing less effective. It's more reallistic, too.

 

For just editing g_speed you needn't change the speed...

 

If it isn't in PM_WalkMove than it is in one funktion in bg_pmove.

I think that wich calls PM_WalkMove...

 

HM, perhaps

 

BG_AdjustClientSpeed()

Link to comment
Share on other sites

For just editing g_speed you needn't change the speed...

 

If it isn't in PM_WalkMove than it is in one funktion in bg_pmove.

I think that wich calls PM_WalkMove...

 

HM, perhaps

 

BG_AdjustClientSpeed()

 

...........................*yawn*....................what the hell is that supposed to mean?, the clients walking speed is handled by the g_speed value!!!!! (third time im posting this), default it's 250 aka basespeed for clientside prediction, just change the default cvar value of g_speed and WOW u have a new walkspeed and yes u can also do this with the console command /g_speed <value>.........................

 

 

Now lets apply logical thinking for the walking backwards thing, so if the player/bot is walking backwards then the speed value <ps.speed> will be depleted...... just do a search on g_speed, basespeed and speed itself....it's just that easy.....

Link to comment
Share on other sites

Ok, I did it. Thank you so much!

It turned out to be in the bg_pmove.c file as Jaii der Herr said. At which speed the player moves in all situations is all (I think?) described in this file.

 

Originally backwards was *= 0.75 ; I made it *= 0.5 and it worked out great! It's now very challenging fighting with bots since you'll have to block :)

 

I still need to slow down turning when the saber is in swing. One way is to minimize mouse sensitivity when swinging. But it won't work with keyboard or joystick. Any other ideas?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...