Well, I don't really know why its all spread out like that, I guess they tried to make their design modular. But at the same time its pretty complicated and hard to understand.
And about where to add code, its pretty much up to you, you can try to follow valve's layout, or go with your own thing. Just keep in mind upgradability, readability, and etc.. Of course, I'm probably not the best person to give this kind of advice, seeing how often I disregard those things ... On Sun, Aug 19, 2012 at 1:07 AM, Michael Kramer <kra...@siosphere.com>wrote: > Alright, I was able to modify the angles by adding some code into the > multiplayer animstate, but I have a question for you. > > It seems that gamemovement adjusts only the origin, and not the > viewangles/player angles at all, so I'm assuming adding anything in there > would be wrong to do. > It also seems like the movement code is all over the place, in player, > gamemovement, in_mouse, playermove, etc is there a reason it is spread all > over the place? > > It seems like ideally all player movement should be controlled in 1 place, > and not 5 or 6 different areas... > > > On Fri, Aug 17, 2012 at 12:27 PM, Psy_Commando <psycomma...@gmail.com>wrote: > >> The animstates override player angles, if I remember correctly. You may >> want to check it out. >> >> On Fri, Aug 17, 2012 at 1:05 PM, Michael Kramer < >> gameexpertmas...@gmail.com> wrote: >> >>> I've been trying for the past few days to implement a "barrel roll" >>> function, by applying a transform on the player angles, but no matter what >>> I do, the angles never seem to update. >>> >>> I've tried implementing it in several places, including >>> gamemovement.cpp, and even setting the player angles to all 0, doesn't >>> affect a thing. >>> >>> I've tried tracing through my code, and it seems that the value gets >>> saved, but nothing ever updates on the player in-game. >>> >>> I'm wondering if there is something in the code that is overriding my >>> set angles, I've traced through and cannot seem to find anything involving >>> playermovement or the player itself that is modifying the angles. >>> >>> Thanks, >>> >>> _______________________________________________ >>> To unsubscribe, edit your list preferences, or view the list archives, >>> please visit: >>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders >>> >>> >>> >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders >> >> >> > > > -- > *Michael Kramer, Software Engineer & SEO Expert* > http://www.siosphere.com | kra...@siosphere.com > *[c] 801-530-9454* > * > * > * > * > > -------------------------------------------------------------------------------------------------------- > This email and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this email in error please notify the system manager. > This message contains confidential information and is intended only for the > individual named. If you are not the named addressee you should not > disseminate, distribute or copy this e-mail. Please notify the sender > immediately by e-mail if you have received this e-mail by mistake and > delete this e-mail from your system. If you are not the intended recipient > you are notified that disclosing, copying, distributing or taking any > action in reliance on the contents of this information is strictly > prohibited. > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders > > >
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlcoders