Homeboy Posted July 8, 2002 Share Posted July 8, 2002 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 More sharing options...
Subject452 Posted July 10, 2002 Share Posted July 10, 2002 look up the g_speed value in the source Link to comment Share on other sites More sharing options...
Homeboy Posted July 10, 2002 Author Share Posted July 10, 2002 which file is it in? is it as simple as changing weapon speeds? Link to comment Share on other sites More sharing options...
Jaii der Herr Posted July 10, 2002 Share Posted July 10, 2002 you can simply change it in the console while playing ( if you have the server ) Link to comment Share on other sites More sharing options...
[JHQ]Inty Posted July 10, 2002 Share Posted July 10, 2002 if you're going to change the code you'll need programming experience first. Link to comment Share on other sites More sharing options...
Homeboy Posted July 10, 2002 Author Share Posted July 10, 2002 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 More sharing options...
Jaii der Herr Posted July 10, 2002 Share Posted July 10, 2002 search for "PM_WalkMove()" etc. in bg_pmove.c I think there you'll find what you search ( If you are a liitle bit famillar with c ). Link to comment Share on other sites More sharing options...
Subject452 Posted July 10, 2002 Share Posted July 10, 2002 PM_WalkMove() doesn't handle the speed of your walking only how you walk, just do a search on g_speed, i think its in g_active.c and change the float value of it. Link to comment Share on other sites More sharing options...
Jaii der Herr Posted July 10, 2002 Share Posted July 10, 2002 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 More sharing options...
Subject452 Posted July 11, 2002 Share Posted July 11, 2002 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 More sharing options...
Jaii der Herr Posted July 11, 2002 Share Posted July 11, 2002 oh, I meant code, not speed it is in the funkten I mentioned after the perhaps. There is already one part that reduces backwardspeed to 70% ( *= 0.7 ) Link to comment Share on other sites More sharing options...
Homeboy Posted July 12, 2002 Author Share Posted July 12, 2002 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 More sharing options...
Jaii der Herr Posted July 12, 2002 Share Posted July 12, 2002 you could add an maxangle/sec. Then you check if s.o. turned greater than the angle / frametime (or whatever time you have in that funktion ) and cap it if it is higher Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.