Raised This Month: $ Target: $400
 0% 

Third Person(and others) Viewmode


Post New Thread Reply   
 
Thread Tools Display Modes
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 09-15-2008 , 11:58   Re: Third Person(and others) Viewmode
Reply With Quote #61

Quote:
Originally Posted by sytremelaker View Post
I'm not sure if that cvar works, I would set it in amxx.cfg but when I would restart the map, you start off in first person and if you type /randomview, you will then be switched to the upleft position.

From the on you can't get out of the upleft position (which is good).
I've uploaded a newer version that should fix this problem.
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
sytremelaker
Senior Member
Join Date: Jun 2006
Location: Staples Center, Los Ange
Old 09-16-2008 , 02:42   Re: Third Person(and others) Viewmode
Reply With Quote #62

Code:
/home/groups/alliedmodders/forums/files/2/8/4/4/12531.attach(126) : error 029: invalid expression, assumed zero
/home/groups/alliedmodders/forums/files/2/8/4/4/12531.attach(126) : warning 215: expression has no effect
/home/groups/alliedmodders/forums/files/2/8/4/4/12531.attach(126) : error 001: expected token: ";", but found "if"
Got that error with the new viewmode_v3a. Compiled off web compiler and locally.
__________________
@ PC Shop Gaming
LetShannonDunk.com - 2010 All-Star Dunk Contest hopeful!
sytremelaker is offline
Send a message via AIM to sytremelaker
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-16-2008 , 11:46   Re: Third Person(and others) Viewmode
Reply With Quote #63

This plugin should be in unapproved plugins section.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 09-16-2008 , 18:31   Re: Third Person(and others) Viewmode
Reply With Quote #64

Quote:
Originally Posted by connorr View Post
This plugin should be in unapproved plugins section.
Why, exactly?

EDIT: New version uploaded, apparently you have to nest if's instead of using the && operator for cvars..
__________________

Last edited by Throstur; 09-16-2008 at 18:53.
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-16-2008 , 19:19   Re: Third Person(and others) Viewmode
Reply With Quote #65

Why ? Because it's badly coded ( scary! ) , you seems to not be able to maintain a simple plugin, and also too stubborn to heard recommendations from coders like has done connor there : http://forums.alliedmods.net/showthr...473#post560473
__________________

Last edited by Arkshine; 09-17-2008 at 14:31.
Arkshine is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 09-17-2008 , 14:12   Re: Third Person(and others) Viewmode
Reply With Quote #66

Quote:
Originally Posted by arkshine View Post
Why ? Because it's cadly coded ( scary! ) , you seems to not be able to maintain a simple plugin, and also too stubborn to heard recommendations from coders like has done connor there : http://forums.alliedmods.net/showthr...473#post560473
I fail to see how what he posted is very much different from what I've got right now...

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>

new uplefttopdownthirdperson

public plugin_init()
{
    
register_plugin("Third Person","1.0","Throstur")

    
register_clcmd("say /thirdperson","fnView_Thirdperson")
    
register_clcmd("say /firstperson","fnView_Firstperson")
    
register_clcmd("say /randomview","fnView_Random")
    
    
register_cvar("amx_viewmode","1")
    
register_cvar("amx_viewmode_allowrnd","1")    // allow random viewmode
    
upleft register_cvar("amx_viewmode_force_upleft","0")
    
topdown register_cvar("amx_viewmode_force_topdown","0")
    
thirdperson register_cvar("amx_viewmode_force_thirdperson","0")
    
}

public 
plugin_precache()
{
    
precache_model("models/rpgrocket.mdl")
}

public 
fnView_Thirdperson(id
EDIT: Now, I'm asking you nicely to point out what exactly you find to be scarily or badly coded, and also tell me how you'd suggest to fix it.
__________________

Last edited by Throstur; 09-17-2008 at 14:21. Reason: Re-use of old message
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Chef^^
Junior Member
Join Date: Jan 2007
Old 09-21-2008 , 10:30   Re: Third Person(and others) Viewmode
Reply With Quote #67

What happened to the 1 cvar thingy? I mean the amx_forceview 1,2or3?
Chef^^ is offline
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 09-21-2008 , 19:16   Re: Third Person(and others) Viewmode
Reply With Quote #68

That's in version v3a (the beta) and doesn't work in version 2.
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
amokossi
Senior Member
Join Date: Apr 2008
Old 07-21-2009 , 04:09   Re: Third Person(and others) Viewmode
Reply With Quote #69

could be useful in Soccerjam or?
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
Throstur
Senior Member
Join Date: Nov 2004
Location: Iceland
Old 07-21-2009 , 11:54   Re: Third Person(and others) Viewmode
Reply With Quote #70

Quote:
Originally Posted by amokossi View Post
could be useful in Soccerjam or?
It's not made for anything specific, it's useful in whatever you want it to be useful in!
__________________
Throstur is offline
Send a message via AIM to Throstur Send a message via MSN to Throstur
Old 12-13-2009, 15:05
fR4gn0tiX!
This message has been deleted by fR4gn0tiX!.
Reply



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 10:37.


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