AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Method to using custom crosshair.. (https://forums.alliedmods.net/showthread.php?t=163901)

avril-lavigne 08-04-2011 19:31

Method to using custom crosshair..
 
On one server I saw custom crosshair as sprite.
In my sprites folder I found those sprite and coordinates in SEPARATE FILE ( NOT IN HUD.txt! )

in weapons_m79.txt

PHP Code:

3
weapon            640 custom
/640hud15    0    180    170    45
weapon_s        640 custom
/640hud16    0    180    170    45
ammo            640 640hud7    72    72    24    24 

so .... how to draw this sprite ? what TE_ effect?

avril-lavigne 08-04-2011 21:09

Re: Method to using custom crosshair..
 
another question how to assign weapons to different slots
I have 3 weapons in slot1 ( famas . aug . awp )

I want to use famas on slot4 .... awp on slot 5 .... how to do that

bibu 08-05-2011 06:44

Re: Method to using custom crosshair..
 
Quote:

Originally Posted by avril-lavigne (Post 1525950)
another question how to assign weapons to different slots
I have 3 weapons in slot1 ( famas . aug . awp )

I want to use famas on slot4 .... awp on slot 5 .... how to do that

Can be done with orpheu, search there.

Arkshine 08-05-2011 07:29

Re: Method to using custom crosshair..
 
Quote:

so .... how to draw this sprite ? what TE_ effect?
Slowhacking using probably motd_write. Bad idea to do that, crosshair will be changed for all the servers.

avril-lavigne 08-05-2011 07:54

Re: Method to using custom crosshair..
 
no ... only if weapon was m79 ... strange. Ok forget this. I will draw + with hudmessage.its enough for players

abdul-rehman 08-05-2011 08:16

Re: Method to using custom crosshair..
 
Another thing you can do is
- Block the original Crosshair message
- Then display a custom crosshair sprite on the players screen using my Sprites on HUD plugin
- U can also make an animated crosshair and display it to the user.

avril-lavigne 08-05-2011 08:50

Re: Method to using custom crosshair..
 
Yes I know abdul. I ve download your code awhile ago. just didnt have time to test it)


All times are GMT -4. The time now is 03:21.

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