Raised This Month: $32 Target: $400
 8% 

[CSGO] Cameras and Drones (v1.2.3, 23-07-2017)


Post New Thread Reply   
 
Thread Tools Display Modes
MithatGuner
Member
Join Date: Sep 2016
Location: Turkey
Old 07-24-2017 , 03:16   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #11

WOW Cool!
MithatGuner is offline
Keplyx
Member
Join Date: Apr 2017
Location: France
Old 07-24-2017 , 06:35   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #12

Quote:
Originally Posted by nguyenbaodanh View Post
hahahaha I love this idea !
But how to control drone ?
You must be in the team that has drones (T by default), buy one (command cd_buy), throw it on the ground (the drone is in fact a tactical grenade, or sensor grenade), then once it is on the ground, use the command cd_cam to open it. Once the drone is opened, you can control it by using +forward and +jump only, other movements have been blocked.

For a better experience, you should bind the commands to keys (type cd_help in console for more infos).

To exit the drone, press +crouch or enter cd_cam, or press 9 (exit on the menu).

Glad like you the idea!
__________________
Keplyx is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 07-24-2017 , 07:53   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #13

Could you add a native like the buy command but except this?
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
Keplyx
Member
Join Date: Apr 2017
Location: France
Old 07-24-2017 , 08:42   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #14

Quote:
Originally Posted by Bara View Post
Could you add a native like the buy command but except this?
I never made natives, I read the wiki and I think I understand how it works. But why do you want me to create this native? Buying a camera or a drone is simply giving a tactical grenade to him (the difference is the buy command in the plugin gives visual feedback and checks if he already bought one), then depending on its team, it will be a drone or a camera.
__________________
Keplyx is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 07-24-2017 , 12:14   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #15

Quote:
Originally Posted by Keplyx View Post
I never made natives, I read the wiki and I think I understand how it works. But why do you want me to create this native? Buying a camera or a drone is simply giving a tactical grenade to him (the difference is the buy command in the plugin gives visual feedback and checks if he already bought one), then depending on its team, it will be a drone or a camera.
So that it could be used in TTT I guess
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
Keplyx
Member
Join Date: Apr 2017
Location: France
Old 07-24-2017 , 12:54   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #16

Quote:
Originally Posted by yash1441 View Post
So that it could be used in TTT I guess
But for it to be used in TTT, there must be more modification than just making a "buy" native.
__________________
Keplyx is offline
Keplyx
Member
Join Date: Apr 2017
Location: France
Old 07-25-2017 , 06:03   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #17

Quote:
Originally Posted by Bara View Post
Could you add a native like the buy command but except this?
I made the natives, not just buy, but also override!
So with the natives, you can now override the player gear and buy one without using the price, so you can set your own.

This is the first time I make natives, and I'm not sure if they fully work. To use them, you have to download the plugin from the dev branch on Github (do not use the links in the README, they use files from master branch).

Hope it helps!
__________________
Keplyx is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 07-30-2017 , 08:15   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #18

How to make always normal eye angle?
Spoiler
Attached Images
File Type: jpg 123.jpg (67.4 KB, 409 views)
File Type: jpg 1234.jpg (84.4 KB, 446 views)

Last edited by Indarello; 07-30-2017 at 09:27.
Indarello is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 08-06-2017 , 02:24   Re: [CSGO] Cameras and Drones (v1.0.0, 23-08-2017)
Reply With Quote #19

1)
Normal eye angle (camermanager.sp):
Code:
//SetVariantString("!activator"); AcceptEntityInput(client_index, "SetParent", cam, client_index, 0);
float pos[3], rot[3];
GetEntPropVector(cam, Prop_Data, "m_vecOrigin", pos);
TeleportEntity(client_index, pos, rot, NULL_VECTOR);
in public void TpToCam(int client_index, int cam)

2)
I have this strange error:
L 08/06/2017 - 13:13:05: [SM] Exception reported: Handle d4102cd is invalid (error 3)
L 08/06/2017 - 13:13:05: [SM] Blaming: cameras-and-drones.smx
L 08/06/2017 - 13:13:05: [SM] Call stack trace:
L 08/06/2017 - 13:13:05: [SM] [0] CloseHandle
L 08/06/2017 - 13:13:05: [SM] [1] Line 360, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::CloseCamera
L 08/06/2017 - 13:13:05: [SM] [2] Line 259, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::OpenCamera
L 08/06/2017 - 13:13:05: [SM] [3] Line 250, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::OpenGear

But 360 line:
Code:
if (playerCamMenus[client] != null)
{
	delete playerCamMenus[client];
}

Last edited by Indarello; 08-06-2017 at 02:27.
Indarello is offline
Keplyx
Member
Join Date: Apr 2017
Location: France
Old 08-07-2017 , 05:06   Re: [CSGO] Cameras and Drones (v1.0.0, 23-07-2017)
Reply With Quote #20

Quote:
How to make always normal eye angle?
The only way to make that for now is to edit and recompile the code. I'll maybe add a cvar in the future to enable this feature.

If you want to edit the code, the one you suggested should work (in camermanager.sp):

PHP Code:
//Set pos
float pos[3], rot[3];
GetEntPropVector(camProp_Data"m_vecOrigin"pos);
TeleportEntity(client_indexposrotNULL_VECTOR); 
That way you set the player position only

Quote:
I have this strange error:
L 08/06/2017 - 13:13:05: [SM] Exception reported: Handle d4102cd is invalid (error 3)
L 08/06/2017 - 13:13:05: [SM] Blaming: cameras-and-drones.smx
L 08/06/2017 - 13:13:05: [SM] Call stack trace:
L 08/06/2017 - 13:13:05: [SM] [0] CloseHandle
L 08/06/2017 - 13:13:05: [SM] [1] Line 360, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::CloseCamera
L 08/06/2017 - 13:13:05: [SM] [2] Line 259, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::OpenCamera
L 08/06/2017 - 13:13:05: [SM] [3] Line 250, D:\wcs\csgo_ds\csgo\addons\sourcemod\scriptin g\cameras-and-drones.sp::OpenGear
Strange, I thought I fixed it... I'll see what I can do about that.
Do you know what you did to get this error?


Sorry for the late answer, I didn't have internet for a while.
__________________
Keplyx is offline
Reply


Thread Tools
Display Modes

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 08:34.


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