AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Addon: Sprites On HUD !! Updated to v1.1 !! (https://forums.alliedmods.net/showthread.php?t=159584)

abdul-rehman 06-19-2011 05:17

[ZP] Addon: Sprites On HUD !! Updated to v1.1 !!
 
1 Attachment(s)
[ZP] Addon: Sprites On HUD
[updated to v1.1]


Description:
This plugin allows you to place a sprite on users screen (HUD). It also features an include file which contains natives for setting and removing sprites from players' screens. The include file, named zp_dsohud, is present within the zip package attached below.
An example plugin is also included within the package which displays sprites on round end for the team which wins the round.
Not only this, but animated sprites are also supported which means you can make various sprite animations and display them on the users screen.
Here are some Screenshots

Credits:
- MercyLeZZ ------> For his awesome ZP Mod.
- Quim' / Conner ---> For helping me with vector calculations and FM_AddToFullPack forward
- Arkshine ----------> For helping me with animating sprites

Change Log:
- v1.0 =====> Initial Release.
- v1.1 =====> Added support for animated sprites

jc980 06-19-2011 05:18

Re: [ZP] Addon: Sprites On HUD v1.0
 
WELCOME BACK MY FRIEND!!!!!

abdul-rehman 06-19-2011 05:23

Re: [ZP] Addon: Sprites On HUD v1.0
 
HY !
I m going offline again for 2 weeks, after then i will come online to update this plugin and ofcourse post new plugins

Bye -

jc980 06-19-2011 05:24

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1491254)
HY !
I m going offline again for 2 weeks, after then i will come online to update this plugin and ofcourse post new plugins

Bye -

good luck on your vacation!!!!! and dont get KILLED by the taliban!!!!! ( LOL )

DeLiriuM 06-19-2011 05:26

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1491254)
HY !
I m going offline again for 2 weeks, after then i will come online to update this plugin and ofcourse post new plugins

Bye -

How'd the exams go :)

abdul-rehman 06-19-2011 05:29

Re: [ZP] Addon: Sprites On HUD v1.0
 
Exams went well thats why i wasnt online, now i have 2 months holidays for scripting YAY !, btw lets not get carried away from the topic :oops:

jc980 06-19-2011 05:31

Re: [ZP] Addon: Sprites On HUD v1.0
 
can you change the green font color it hurts my EYES.

and also i will test this!!!!!

dias 06-19-2011 06:12

Re: [ZP] Addon: Sprites On HUD v1.0
 
Cool :D

jc980 06-19-2011 06:25

Re: [ZP] Addon: Sprites On HUD v1.0
 
i could use this in zp cso ingame theme!!!!! thx abdul!!!! very useful!

tei1995 06-19-2011 06:28

Re: [ZP] Addon: Sprites On HUD v1.0
 
thanks man:D

Dolph_Ziggler 06-19-2011 07:51

Re: [ZP] Addon: Sprites On HUD v1.0
 
OMG nice Abdul !!! :D

DarkNill 06-19-2011 08:20

Re: [ZP] Addon: Sprites On HUD v1.0
 
I do not know how you do, but I'm here this error:
http://imagepost.ru/images/f/gf/fgfdg.png

Help me!

bibu 06-19-2011 08:33

Re: [ZP] Addon: Sprites On HUD v1.0
 
Remove the sprite from your PC / server. And redownload it.

georgik57 06-19-2011 09:11

Re: [ZP] Addon: Sprites On HUD v1.0
 
hey abdul
really nice job
i thought you weren't going to come online anymore just like mercylezz
school is a real pain in the ass, eh?

k4y 06-19-2011 14:49

Re: [ZP] Addon: Sprites On HUD v1.0
 
Hey,
Can someone make a Screenshot of this?

PRoSToTeM@ 06-20-2011 08:37

Re: [ZP] Addon: Sprites On HUD v1.0
 
Bad work because the sprite jerks while walking jumping twisting your head if it put off it is not so choppy, but hiding behind a wall.

abdul-rehman 06-27-2011 14:35

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1491419)
hey abdul
really nice job
i thought you weren't going to come online anymore just like mercylezz
school is a real pain in the ass, eh?

Hahaha, but sometimes exams really get on my nerves
Quote:

Originally Posted by PRoSToTeM@ (Post 1492128)
Bad work because the sprite jerks while walking jumping twisting your head if it put off it is not so choppy, but hiding behind a wall.

Ya i m still trying to figure out how to fix that :|


Btw
To Do List:
- Optimize code by making sure that sprites are not displayed for bots as well
- Add support for multiple sprites.
- Make the plugin more dynamic.
- Add support for Fade-in and Fade-out times

nikhilgupta345 06-27-2011 15:26

Re: [ZP] Addon: Sprites On HUD v1.0
 
I don't think this main zp_display_hud is actually limited to Zombie Plague, so i'm not sure if it's already released, but you can post the include file into the Code Snippets/Tutorial Section :)

abdul-rehman 06-28-2011 05:00

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by nikhilgupta345 (Post 1498090)
I don't think this main zp_display_hud is actually limited to Zombie Plague, so i'm not sure if it's already released, but you can post the include file into the Code Snippets/Tutorial Section :)

Hmmm, maybe ur right i will do it. :)

jc980 06-28-2011 05:06

Re: [ZP] Addon: Sprites On HUD v1.0
 
hey, abdul...

can you add the X and Y coordinates!?

i want to display sprite on the side.(like buyzone. without slowhacking.)

abdul-rehman 06-28-2011 06:46

Re: [ZP] Addon: Sprites On HUD v1.0
 
You can make the sprite in such a way that it is on the side, use the sprite explorer for creating editing sprites.

Edit:
Is there a way to create high quality sprites? What are the maximum dimensions a sprite can be of?

georgik57 06-28-2011 09:39

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1498609)
You can make the sprite in such a way that it is on the side, use the sprite explorer for creating editing sprites.

Edit:
Is there a way to create high quality sprites? What are the maximum dimensions a sprite can be of?

i think 512x512 @ 256bit image
then use sprite explorer to make it a sprite

abdul-rehman 06-28-2011 09:45

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1498705)
i think 512x512 @ 256bit image
then use sprite explorer to make it a sprite

Can u make me a 512x512 @ 256 bit image of plain white color so i can use it for sprites? :)
I dont know how to make one :/

Kiryu Zero 06-28-2011 11:17

Re: [ZP] Addon: Sprites On HUD v1.0
 
L 06/28/2011 - 19:09:29: [AMXX] Displaying debug trace (plugin "zp_sprites_on_hud.amxx")
L 06/28/2011 - 19:09:29: [AMXX] Run time error 5: memory access
L 06/28/2011 - 19:09:29: [AMXX] [0] zp_sprites_on_hud.sma::native_display_hud_spr ite (line 140)
L 06/28/2011 - 19:09:29: Unhandled dynamic native error
L 06/28/2011 - 19:09:29: [AMXX] Displaying debug trace (plugin "zp_advanced_win_msgs.amxx")
L 06/28/2011 - 19:09:29: [AMXX] Run time error 10: native error (native "zp_display_hud_sprite")
L 06/28/2011 - 19:09:29: [AMXX] [0] zp_advanced_win_msgs.sma::zp_round_ended (line 50)

abdul-rehman 06-28-2011 11:32

Re: [ZP] Addon: Sprites On HUD v1.0
 
U need to place the name of the main plugin above its sub-plugin
In plugin-zplague.ini:
Code:

zp_advanced_win_msgs.amxx
zp_sprites_on_hud.amxx

--->>
Code:

zp_sprites_on_hud.amxx
zp_advanced_win_msgs.amxx


georgik57 06-28-2011 11:32

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1498710)
Can u make me a 512x512 @ 256 bit image of plain hite color so i can use it for sprites? :)

image showing what? xD

abdul-rehman 06-28-2011 11:35

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1498792)
image showing what? xD

The image should contain nothing, just white color in it, so that i can use it for making custom sprites.

georgik57 06-28-2011 11:42

Re: [ZP] Addon: Sprites On HUD v1.0
 
2 Attachment(s)
Quote:

Originally Posted by abdul-rehman (Post 1498799)
The image should contain nothing, just white color in it, so that i can use it for making custom sprites.

lol you can simply do that using paint
i meant after you have the image you wanted, resize it to a max of 512x512 and then convert it to 256 colors
i personally use xnview...it's the best in my opinion
you can use whatever you want

abdul-rehman 06-28-2011 11:51

Re: [ZP] Addon: Sprites On HUD v1.0
 
Ok thnx, its seems i m a n00b at some basic things :oops:

georgik57 06-28-2011 15:32

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1498816)
Ok thnx, its seems i m a n00b at some basic things :oops:

nobody knows it all

Dolph_Ziggler 06-28-2011 19:42

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1498951)
nobody knows it all

what do you mean ?

georgik57 06-29-2011 12:35

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by Dolph_Ziggler (Post 1499115)
what do you mean ?

exactly what i wrote
what's hard to understand?

.Dare Devil. 06-29-2011 14:58

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1498806)
lol you can simply do that using paint
i meant after you have the image you wanted, resize it to a max of 512x512 and then convert it to 256 colors
i personally use xnview...it's the best in my opinion
you can use whatever you want

Image mode must be a indexed color
and 8 bit

I do cs format images on wally, or photoshop.

Paint cant do it :)

Dolph_Ziggler 06-29-2011 15:56

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1499630)
exactly what i wrote
what's hard to understand?

really, it's hard to understand xDDD

georgik57 06-29-2011 16:20

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by .Dare Devil. (Post 1499757)
Image mode must be a indexed color
and 8 bit

I do cs format images on wally, or photoshop.

Paint cant do it :)

indexed color?
and doesn't 8 bit mean 256 colors?
i made a sprite without using either wally or photoshop

abdul-rehman 06-29-2011 16:39

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by georgik57 (Post 1499832)
indexed color?
and doesn't 8 bit mean 256 colors?
i made a sprite without using either wally or photoshop

After much trial and error, i found out that the max size of the bmp file a sprite can have is 552 x 552 (multiples of 8. ) in 24-bit bmp file format.
I did it using paint and sprite explorer only.

georgik57 06-29-2011 19:58

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by abdul-rehman (Post 1499851)
After much trial and error, i found out that the max size of the bmp file a sprite can have is 552 x 552 (multiples of 8. ) in 24-bit bmp file format.
I did it using paint and sprite explorer only.

so we were both wrong
thanks for the info
will try to remember that

bboygrun 06-29-2011 20:03

Re: [ZP] Addon: Sprites On HUD v1.0
 
I can do other sprites if you want :3.

Dolph_Ziggler 06-30-2011 08:05

Re: [ZP] Addon: Sprites On HUD v1.0
 
Quote:

Originally Posted by bboygrun (Post 1499955)
I can do other sprites if you want :3.

please can you make me if human turned to zm it show sprite item_battery it can be done or not ?

darkbad945 06-30-2011 08:59

Re: [ZP] Addon: Sprites On HUD v1.0
 
BUG: When you move the sprite moves too


All times are GMT -4. The time now is 08:01.

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