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

[CS:GO] Team opacity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-15-2015 , 05:20   [CS:GO] Team opacity
Reply With Quote #1

Ciao guys,

I am looking for a method how to set opacity for my team.
eg:
  • I look at my team - 50% opacity
  • I look at the enemy team - full opacity
Is this even possible?


P.S.: I should be able to set (via cookies) if I want to see my team with 50% opacity.
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-15-2015 , 08:02   Re: [CS:GO] Team opacity
Reply With Quote #2

Same way you set opacity for anything else, no?
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-15-2015 , 08:04   Re: [CS:GO] Team opacity
Reply With Quote #3

No, I want to see my teammates with 50% opacity, but see enemies with full opacity (same for all other players).
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-15-2015 , 08:09   Re: [CS:GO] Team opacity
Reply With Quote #4

Oh. Try something like https://forums.alliedmods.net/showthread.php?t=169795

Last edited by Miu; 07-15-2015 at 09:03.
Miu is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 07-15-2015 , 12:04   Re: [CS:GO] Team opacity
Reply With Quote #5

Quote:
Originally Posted by Miu View Post
I don't think the extension supports csgo... yet.
Mitchell is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-15-2015 , 12:32   Re: [CS:GO] Team opacity
Reply With Quote #6

Yeah, I am trying to compile it for csgo now... :-/ I guess there is now reason why it shouldn't work for csgo, but there is missing one function in csgo sdk and I am kinda noob about extensions...
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-15-2015 , 13:14   Re: [CS:GO] Team opacity
Reply With Quote #7

Oh sorry, I'm not paying much attention today apparently XD In regards to your compilation errors, try gamehelpers->ReferenceToEntity(gamehelpers->IndexToReference(entity)) instead of PEntityOfEntIndex(entity)

edit: and gamehelpers->IndexOfEdict(pEnt) as a substitute for engine->IndexOfEdict(pEnt)

edit2: if it isn't already, you'll need to uncomment the gamehelpers define in smsdk_config.h

Last edited by Miu; 07-15-2015 at 13:29.
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-15-2015 , 13:37   Re: [CS:GO] Team opacity
Reply With Quote #8

Quote:
Originally Posted by Miu View Post
Oh sorry, I'm not paying much attention today apparently XD In regards to your compilation errors, try gamehelpers->ReferenceToEntity(gamehelpers->IndexToReference(entity)) instead of PEntityOfEntIndex(entity)

edit: and gamehelpers->IndexOfEdict(pEnt) as a substitute for engine->IndexOfEdict(pEnt)

edit2: if it isn't already, you'll need to uncomment the gamehelpers define in smsdk_config.h
Nice man! :-) However, I got this error :-D
PHP Code:
D:\alliedmodders\sourcemod-sendproxy-manager\extension\extension.cpp(131) : error C2440'initializing' cannot convert from 'CBaseEntity *' to 'edict_t *'
        
Types pointed to are unrelatedconversion requires reinterpret_castC-style cast or function-style cast 
on line
PHP Code:
edict_tpEnt gamehelpers->ReferenceToEntity(gamehelpers->IndexToReference(g_ChangeHooks[i].objectID)); 
KissLick is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 07-15-2015 , 13:40   Re: [CS:GO] Team opacity
Reply With Quote #9

Use gamehelpers->EdictOfIndex()
Miu is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 07-15-2015 , 14:10   Re: [CS:GO] Team opacity
Reply With Quote #10

Thx guys! :-)

But now I got these :-(
PHP Code:
   Creating library sendproxy.ext.2.csgo.lib and object sendproxy.ext.2.csgo.exp
extension
.obj error LNK2001unresolved external symbol "public: virtual void __thiscall SDKExtension::SDK_OnDependenciesDropped(void)" (?SDK_OnDependenciesDropped@SDKExtension@@UAEXXZ)
extension.obj error LNK2001unresolved external symbol "public: virtual void __thiscall SDKExtension::OnDependenciesDropped(void)" (?OnDependenciesDropped@SDKExtension@@UAEXXZ)
sendproxy.ext.2.csgo.dll fatal error LNK11202 unresolved externals 
Hopefully last errors... O:-) I tried to search for OnDependenciesDropped, but I only found some function headers in headers files and nothing more :-/
KissLick 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 05:25.


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