Yeah sorry that's what I meant. ViewKick is a function I wrote that runs ViewPunch and some accuracy related stuff, so I don't really call punch directly anymore. ViewPunch is where it's at.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Ritchie Sent: 18 January 2009 16:21 To: Discussion of Half-Life Programming Subject: Re: [hlcoders] Making the player jerk up when hit If you want it to return to it's previous position then you should use ViewPunch On Sun, Jan 18, 2009 at 3:13 PM, Willem Engel <[email protected]> wrote: > You could use the the viewkick function used when shooting (in > baseweapon I think). If you put that somewhere in TakeDamage then all > should be fine. TakeDamage also has damageinfo so you can make the kick > damage relative. > > Regards > > Willem > > Scott Robson wrote: > > Hi, > > > > I am trying to make the players' crosshair jerk up quickly and return to > the origin within a certain timeframe. I also want the amount of damage you > take to affect how much the player jerks up. This is so the player can't > just 'stand and deliver' it gets boring. Can anyone help? > > > > Cheers, > > > > Scott. > > _________________________________________________________________ > > Choose the perfect PC or mobile phone for you > > http://clk.atdmt.com/UKM/go/130777504/direct/01/ > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, > please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

