CS 1.6 Custom 3rd Person View
1 Attachment(s)
Hey guys, I was messing around and made my own 3rd person camera. This camera has several different things compared with using set_view from engine module.
Differences: - Precision where your aiming is better. - Your model isn't alpha'd. - Your model stutters a bit with this method. - Doesn't require rocket.mdl (uses a weapon file from mod thats already precached) Heres the code using ENGINE module. It can be converted to FAKEMETA tho. Code:
That's it. You can change how the player can turn this off if you don't want to use my USE key method, just copy attach_view( id, id ); and remove_entity(entid); where you want to do it. Here's a screenshot: |
Re: CS 1.6 Custom 3rd Person View
wow, this is so cool, and with fakemeta, this will be awesome. Good Job OneEyed. :wink:
|
Re: CS 1.6 Custom 3rd Person View
Fakemeta way.
Code:
|
Re: CS 1.6 Custom 3rd Person View
I'm jealous that you were able to get attach_view to work. Good job!
|
Re: CS 1.6 Custom 3rd Person View
and how can i set it to normal?
|
Re: CS 1.6 Custom 3rd Person View
engine:
Code:
attach_view( id, id ); Code:
engfunc( EngFunc_SetView, iOwner, iOwner ); |
Re: CS 1.6 Custom 3rd Person View
i get it :*! 10x!
|
Re: CS 1.6 Custom 3rd Person View
ohhh yes oneEyed!! :D
|
Re: CS 1.6 Custom 3rd Person View
Here is my method, improved some things :), the model doesn't shake anymore.
PHP Code:
|
Re: CS 1.6 Custom 3rd Person View
Quote:
|
Re: CS 1.6 Custom 3rd Person View
Quote:
yoh you are awesome thanks! karmaed |
Re: CS 1.6 Custom 3rd Person View
Nice =O
|
Re: CS 1.6 Custom 3rd Person View
Quote:
|
Re: CS 1.6 Custom 3rd Person View
Can somebody make this to force the camera on player? and to don't write /cam! thx
|
Re: CS 1.6 Custom 3rd Person View
add this to your code
PHP Code:
That's all! |
Re: CS 1.6 Custom 3rd Person View
Quote:
PHP Code:
|
Re: CS 1.6 Custom 3rd Person View
Because I wanted to make him think, not to give simply the code in his hands ;).
|
Re: CS 1.6 Custom 3rd Person View
its not working,when i enter in game and select ct or t its blocked.
[IMG]http://img9.**************/my.php?image=dontwork.jpg[/IMG][IMG]http://img9.**************/img9/4864/dontwork.th.jpg[/IMG] [IMG]http://img9.**************/my.php?image=dontwork.jpg[/IMG] |
Re: CS 1.6 Custom 3rd Person View
here is the error.i run the plugin in debug mode.
[ENGINE] Invalid player 1 (not in-game) [AMXX] Run time error 10: native error (native "attach_view") [AMXX] [0] cam.sma::Create_PlayerCamera (line 60) [AMXX] [1] cam.sma::FwdPlayerSpawn (line 24) |
Re: CS 1.6 Custom 3rd Person View
Change
Code:
by Code:
|
Re: CS 1.6 Custom 3rd Person View
Quote:
|
Re: CS 1.6 Custom 3rd Person View
thx its working.
|
Re: CS 1.6 Custom 3rd Person View
i m going a bit noob ,tthis file is not compiling with1.81 and amxx file cannot be created can u plz post teh amxx file be helpfull
|
Re: CS 1.6 Custom 3rd Person View
dear moderator can you just post the amxx file for it as it is not locally compiling
|
Re: CS 1.6 Custom 3rd Person View
I need 3Dwiew. When press e, not show normal wiew.
Good player model. Good crosshair. This code. When press e, not show normal wiew But bad player model and crosshair not up when shooting. PHP Code:
But good player model, and good crosshair. PHP Code:
|
Re: CS 1.6 Custom 3rd Person View
Whats better? Fakemeta or engine?
@Driving to Heaven Well, I'm not a good script, so try this: Code:
#include <amxmodx> Or this Code:
|
Re: CS 1.6 Custom 3rd Person View
engine here
|
Re: CS 1.6 Custom 3rd Person View
This could be very useful for Soccerjam right? Hm thinkling about to try to use it on SJ-Maps only.
|
Re: CS 1.6 Custom 3rd Person View
Working version with less code, with smoth moves :
PHP Code:
|
Re: CS 1.6 Custom 3rd Person View
Any chance of a Mod independent version of this? I was testing code for TFC and changing player models and would have really liked this since I was the only person on my listen server.
|
Re: CS 1.6 Custom 3rd Person View
Quote:
sv_cheats 1; cam_command 1; restart |
Re: CS 1.6 Custom 3rd Person View
could anybody please post the most updated version of this code please, engine or fakemeta i dont mind witch, ty
|
Re: CS 1.6 Custom 3rd Person View
3 posts above you, you have a version using an alternate method which should provide "smooth moves".
|
Re: CS 1.6 Custom 3rd Person View
Quote:
does the camera get stuck in the wall sometimes when u turn corners or is it just me? |
Re: CS 1.6 Custom 3rd Person View
can u make the plugin start 3rd person at the begging of the round? all time 3rd person?? pls someone?
|
Re: CS 1.6 Custom 3rd Person View
@Arkshine: how can i edit to make 3rd view like RE4 3rd view ? I really need it.
|
Re: CS 1.6 Custom 3rd Person View
You mean a little to the right ?
If you're telling arkshine I assume you're using his "fakemeta way" version: replace: Code:
static Float:fVBack[3]; Code:
static Float:fVBack[3]; Note that the crosshair will be fairly off too. |
Re: CS 1.6 Custom 3rd Person View
Oh,thank
|
Re: CS 1.6 Custom 3rd Person View
Hmm, re-copy my code, I fixed something :}
|
Re: CS 1.6 Custom 3rd Person View
Yeah, i copied it.
|
All times are GMT -4. The time now is 02:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.