- Scripting Help
(https://forums.alliedmods.net/forumdisplay.php?f=11)
- - 3RD Person + Laser
(https://forums.alliedmods.net/showthread.php?t=335106)
SoulWeaver16
11-08-2021 20:37
3RD Person + Laser
Hi,
I need help so that when you use UpLeft from Simple Camera (3RD, TOP, LEFT) use Laser Sight to be able to not depend on the default sight, since they are not aligned. :nono:
I already tried using it together, they work fine but I want a laser that only you see, being in UpLeft only
And maybe hide the sight in that way, since it gets in the way
Thank you
it is aligned with where the bullet will go, not the crosshair placement because the game is not designed to play in 3D in the first place
You could hide the crosshair only though
it is aligned with where the bullet will go, not the crosshair placement because the game is not designed to play in 3D in the first place
You could hide the crosshair only though
I know that, and it seems like a lot of work to create a plugin that creates a floating crosshair for those cases
So it seemed better to me to take a ready-made job that works well and try to combine them
HamletEagle
11-09-2021 09:19
Re: 3RD Person + Laser
If you have issues with specific plugins please post in the threads of these plugins, do not open topics in scripting help asking for help with already existing plugins.
Use scripting help to ask questions about how you can create a plugin yourself.
SoulWeaver16
11-09-2021 09:29
Re: 3RD Person + Laser
Quote:
Originally Posted by HamletEagle
(Post 2762956)
If you have issues with specific plugins please post in the threads of these plugins, do not open topics in scripting help asking for help with already existing plugins.
Use scripting help to ask questions about how you can create a plugin yourself.
Sorry, how can I move my thread to the correct section?
EDIT: Thanks for moving my thread
SoulWeaver16
11-09-2021 10:16
Re: 3RD Person + Laser
I tried with my zero knowledge but I don't know how to make the laser activate only with 3rd person UpLeft
public plugin_precache()
{
precache_model("models/rpgrocket.mdl")
sprite = precache_model("sprites/white.spr")
}
public CmdCameraMenu(id) {
if(!is_user_alive(id)) {
get_pcvar_string(pCvarPrefix, szPrefix, charsmax(szPrefix))
ColorChat(id, GREEN, "[%s]^1 You need to be alive to use this command.", szPrefix)
return PLUGIN_HANDLED
}
new szTemp[30]
formatex(szTemp, charsmax(szTemp), "%L", LANG_PLAYER, "CAMERA_MENU_TITLE")
new menu = menu_create(szTemp, "CmdCamHandler")
for(new i; i < sizeof(szCameraViews); i++) {
menu_additem(menu, szCameraViews[i])
}
menu_display(id, menu)
return PLUGIN_HANDLED
}
public CmdCamHandler(id, menu, item) {
if(!is_user_alive(id) || !get_pcvar_num(pCvarPlugin) || item == MENU_EXIT) { // Could both be changed while menu is already open.
return PLUGIN_HANDLED
}
new szName[32]; get_user_name(id, szName, charsmax(szName))