• 3 Quick Questions
    4 replies, posted
I have 3 questions that the wiki doesn't seem to have the answers to: 1. [lua] local function MoBlur( x, y, fwd, spin ) if LocalPlayer().head < 5 then return 0, 0, 0, 0 end end hook.Add( "GetMotionBlurValues", "MoBlur", MoBlur) [/lua] What do the x, y, fwd and spin actually do? The wiki stated the data types but not what they actually are. 2. What is the simplest way to make a ragdolled player take damage 3. Is there anyway to get the maximum clipsize of a weapon (not current clipsize or set the max clipsize)
1. I would imagine that they are the direction/amount of the motion blur 2. What do you mean by ragdolled? Are they still alive? Or are they dead? 3. You can keep track of a variable in a think function, and if the current clip size is larger than that, update it to that value.
[QUOTE=Feihc;26289774]1. I would imagine that they are the direction/amount of the motion blur 2. What do you mean by ragdolled? Are they still alive? Or are they dead? 3. You can keep track of a variable in a think function, and if the current clip size is larger than that, update it to that value.[/QUOTE] Thanks for your reply 1. I still don't get it 2. The Player is alive but is in spectate mode around their ragdoll entity, waiting to get up (ie spawn and be positioned at the ragdoll) 3. Thanks, this would work well :D
1) each component might tell the motion blur which direction to display in on each axis respectively. This is just speculation though. I'm answering from my phone. 2) just use entity:takedamage, should work if the player is valid
[QUOTE=Feihc;26301133]1) each component might tell the motion blur which direction to display in on each axis respectively. This is just speculation though. I'm answering from my phone. 2) just use entity:takedamage, should work if the player is valid[/QUOTE] ok thanks, have a heart for your troubles
Sorry, you need to Log In to post a reply to this thread.