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

Custom crosshair - removing old and replacing with new


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-31-2010 , 07:07   Custom crosshair - removing old and replacing with new
Reply With Quote #1

Alright, i want to use a custom crosshair for weapons,
i think all i need is to use the HideWeapon event, and set it to remove crosshair.
But i have no idea how to insert a new one, and actually REALLY delete the crosshair.

PHP Code:
public plugin_init( ) {
      ...
      
      
register_event"HideWeapon" "remCrosshair""ae" );
}
      
public 
remCrosshair() {
      
/* No idea what to put here lol */

Lure.d is offline
Send a message via Skype™ to Lure.d
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-31-2010 , 11:29   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?p=536152
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 03-31-2010 , 15:02   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #3

Quote:
Originally Posted by Lure.d
... insert a new one
I want to import a .spr or whatever crosshair, not switching from ak47 xhair on sniper, or sniper crosshair for rifle...
Lure.d is offline
Send a message via Skype™ to Lure.d
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2010 , 15:45   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #4

You can't. It's handled on the client.
__________________
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-31-2010 , 15:45   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #5

I just showed you the way to remove the default one.
Good luck to add a new one.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2010 , 15:48   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #6

It's possible to add a crosshair in the v_ model of a weapon. You would need to download the model, doing that on all the models and the crosshair will not dynamic. Not worth.
__________________
Arkshine is offline
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 04-01-2010 , 05:08   Re: Custom crosshair - removing old and replacing with new
Reply With Quote #7

oh well, since yesterday, switched to client modding, since im making l4d mod
Lure.d is offline
Send a message via Skype™ to Lure.d
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 14:15.


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