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

[CS:S] Thirdperson [1.5]


Post New Thread Reply   
 
Thread Tools Display Modes
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-21-2012 , 10:44   Re: [ANY] Thirdperson [1.1 20/July/2012]
Reply With Quote #11

Quote:
Originally Posted by GsiX View Post
dosent work on l4d2
What it does exactly?
__________________
retired
shavit is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 08-21-2012 , 10:54   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #12

Nice.

Instead of

Code:
StringToInt(newVal) ? true : false
it's probably better to

Code:
bool:StringToInt(newVal);

Last edited by alongub; 08-21-2012 at 10:55.
alongub is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-21-2012 , 11:42   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #13

There are multiple ways that serve the same effect with no real difference between them. ? true : false is just a conditional statement based on the variable, bool: just casts/types (edit: used wrong word, need more coffee) it, and GetConVarInt(<handle>) would return the updated value. No way is more correct than the other, it's more so personal preference.
__________________

Last edited by thetwistedpanda; 08-21-2012 at 12:40.
thetwistedpanda is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-21-2012 , 11:50   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #14

Quote:
Originally Posted by alongub View Post
Nice.

Instead of

Code:
StringToInt(newVal) ? true : false
it's probably better to

Code:
bool:StringToInt(newVal);
thetwistedpanda posted in one of my threads about approval and he suggested me to use that and now I can't stop because its a habit [איך שלא כותבים הרגל], but like he posted, it's the same effect.
__________________
retired
shavit is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 08-21-2012 , 12:21   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #15

Quote:
Originally Posted by thetwistedpanda View Post
bool: just casts it
Casting is a term that you'd use in languages like C#, but not in SourcePawn - because you don't have types in SourcePawn. Tags are just a way to sort cell information. The <tag>:<expression> syntax isn't casting; it's still just a cell.

Therefore, a condition to change the tag of a cell is 1) unnecessary, and 2) unclear, especially when the code base grows and you use this "technique" outside of cvar hooks.

It isn't really that important though, it's just a side note.

Last edited by alongub; 08-21-2012 at 12:24.
alongub is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 08-21-2012 , 12:58   Re: [ANY] Thirdperson [1.1 20/July/2012]
Reply With Quote #16

Quote:
Originally Posted by shavit View Post
What it does exactly?
i can toggle to 3rd person but i cant see my model not even my gun, the FOV seems incorrect after toggle 3rd
GsiX is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-21-2012 , 13:33   Re: [ANY] Thirdperson [1.1 20/July/2012]
Reply With Quote #17

Quote:
Originally Posted by GsiX View Post
i can toggle to 3rd person but i cant see my model not even my gun, the FOV seems incorrect after toggle 3rd
You can screenshot it and upload? I don't really understand you..
__________________
retired
shavit is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 08-21-2012 , 13:53   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #18

already take screenshot but i don know how to upload it here sorry

what i try to say is when i go 3rd my model is gone. I only have crosshair. i can tell i switch to third coz the way the camera rotate.
GsiX is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 08-21-2012 , 14:08   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #19

sorry i forget to mention, after i go 3rd holding AK, i cant see my AK as well as my model but i still see my melee on my shoulder and the pipebomb.
GsiX is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-21-2012 , 14:36   Re: [ANY] Thirdperson [1.2 21/July/2012]
Reply With Quote #20

Quote:
Originally Posted by GsiX View Post
sorry i forget to mention, after i go 3rd holding AK, i cant see my AK as well as my model but i still see my melee on my shoulder and the pipebomb.
I don't really get you, just upload a screenshot.
__________________
retired
shavit is offline
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 12:19.


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