AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Req] Look back (https://forums.alliedmods.net/showthread.php?t=317836)

JocAnis 07-31-2019 18:56

[Req] Look back
 
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 :D

JusTGo 08-01-2019 03:47

Re: [Req] Look back
 
https://forums.alliedmods.net/showth...36#post2100636

JocAnis 08-02-2019 09:35

Re: [Req] Look back
 
Not exactly what i needed...but could be used as starting point of the code..thanks ! :)

JusTGo 08-02-2019 09:40

Re: [Req] Look back
 
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...

JocAnis 08-02-2019 10:47

Re: [Req] Look back
 
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


All times are GMT -4. The time now is 12:40.

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