Raised This Month: $12 Target: $400
 3% 

[Req] Look back


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JocAnis
Veteran Member
Join Date: Jun 2010
Old 07-31-2019 , 18:56   [Req] Look back
Reply With Quote #1

Yo guys. Is it possible to make a plugin so when you press any key (mouse2 for example) so you will look back..just like on car race games for example
I see this useful especially for deathrun servers with timers..maybe + kz or where ever else

maybe something with pev_viewangle..? but if person still holds W he should continue going forward even if he is looking back

*i hope i explained well what i meant by this
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 08-01-2019 , 03:47   Re: [Req] Look back
Reply With Quote #2

https://forums.alliedmods.net/showth...36#post2100636
__________________
JusTGo is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-02-2019 , 09:35   Re: [Req] Look back
Reply With Quote #3

Not exactly what i needed...but could be used as starting point of the code..thanks !
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 08-02-2019 , 09:40   Re: [Req] Look back
Reply With Quote #4

I guess what is missing is this ?

Quote:
but if person still holds W he should continue going forward even if he is looking back
I guess a way to do it would be creating a camera and set its angle to look behind the player and attach him to it when he presses the button...
__________________
JusTGo is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 08-02-2019 , 10:47   Re: [Req] Look back
Reply With Quote #5

Yes that part...attaching camera to every player when he press button is not very good for the server in my opinion...imagine 30 players press at the same time = creating 30 camera entities (maybe they spam it every other second?) .. :/

my idea is: bool for using looking back -> if player is using it (and FL_ONGROUND ofc): if using forward => move him backwards (by velocity or some client cmd option?) .. and vice versa, if hes using backward + looking back -> move him forward
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode