Greetings, folks.
I'm still just getting my feet wet and was hoping for some tips. I'd like to create what I think would be a particularly useful mutator, but I don't know the code base well enough to start work on it.
The mutator affects sniping -- when one is not crouching, and the sniper scope is zoomed, the player's view should wander randomly. Depending on the state of the player -- crouched, standing, walking, running -- one's view would wander/shake/waver a different ammount.
I took a look at the sniper mod here, and I suspect it's not too hard of a mutator to make, but I'm not certain where to start. Is there a "Crouched" state? If not, I'll need to add one. Is there actually a "Zoomed" state? I noticed there seems to be a "Zooming" state, at the very least. I think I can work my way through the logic of activating and deactivating the cursor-wandering state after lots detective work, though any tips and pointers would be appreciated.
The place where I need the most help is in causing the player's view to wander. Once I know the mechanics of causing it to change on x/y planes, I can play with different "random waver" algorhithms, but where should I start looking to affect the player's view?
Thanks much for any help,
Kel
I'm still just getting my feet wet and was hoping for some tips. I'd like to create what I think would be a particularly useful mutator, but I don't know the code base well enough to start work on it.
The mutator affects sniping -- when one is not crouching, and the sniper scope is zoomed, the player's view should wander randomly. Depending on the state of the player -- crouched, standing, walking, running -- one's view would wander/shake/waver a different ammount.
I took a look at the sniper mod here, and I suspect it's not too hard of a mutator to make, but I'm not certain where to start. Is there a "Crouched" state? If not, I'll need to add one. Is there actually a "Zoomed" state? I noticed there seems to be a "Zooming" state, at the very least. I think I can work my way through the logic of activating and deactivating the cursor-wandering state after lots detective work, though any tips and pointers would be appreciated.
The place where I need the most help is in causing the player's view to wander. Once I know the mechanics of causing it to change on x/y planes, I can play with different "random waver" algorhithms, but where should I start looking to affect the player's view?
Thanks much for any help,
Kel