AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Sprite Importer 3 (https://forums.alliedmods.net/showthread.php?t=9844)

KleeneX 02-01-2005 08:40

Sprite Importer 3
 
1 Attachment(s)
AMXX Sprite Importer 3

You saw it on many servers, sprites with logos of the clan.

You tryed to make it on your server with "Ripend" or "Stripper2", but it was to difficult?
Here is a simple way to add it to every map. :)

============================================= ==
Commands:
amx_isprite - Opens Sprite Importer Menu
say /isprite - Opens Sprite Importer Menu
amx_dsprite - Opens Sprite Importer delete Menu
say /dsprite - Opens Sprite Importer delete Menu

============================================= ==
Usage:

First, you must add the sprites which you want to the "sprites.ini".

The best and easiest way to add a sprite is:
Go on your server, choose spectate, and than type:
amx_isprite
say /isprite

It will open a menu with all added sprites in the "sprites.ini".
Choose a place where you want your sprite and choose which sprite you want.

The last sprite is always "RANDOM". It will add randomly a sprite, it'll be
reloaded every mapchange. (It use only the sprites which are added in the
"sprites.ini").

============================================= ==
Delete Sprites:

You can delete sprites with one of the following commands:
amx_dsprite
say /dsprite

They'll open a menu where you can select a Sprite on the map (it'll show
the origins and spritefile). When you select one (by the giving number) it'll
be marked red in the menu, and it'll show a nice picture where's the sprite
which you've selected. I think there's no need to show how this sprite looks
like. ;) When you've found the one you want to delete, press number 8
(Delete Sprite) and the sprite Will be deleted from the map and the mapname.cfg.

============================================= ==
Changelog:

Version 1.0:
  • First release
Version 2.0:
  • random sprite function
  • you can use more than 1 sprite
  • menu driven
  • you can use animated sprites :D (THX to Xavior)
  • added 1 example animated sprite (THX again to Xavior)
Version 2.1:
  • Added RANDOM Sprite mode. Change sprite after
    mapchange, or every new round.(Works only in CS & CZ, I think ;))
Version 2.3:
  • Added function so it checks if there are more Sprites
    than used, so it most times ever make a different Sprite.
Version 2.4:
  • Version 2.2 works now with other mods than CS & CZ. ;)
  • Updated the old readme. :P
Version 3.0:
  • Remade and optimized the code completely
  • Added delete Sprite option. :)
  • Removed temporary the Random Sprite mode.

============================================= ==
Credits:

KleeneX: Made this cool plugin :P
Xavior: example sprite, animation code

Merry Christmas :)

Rastin 02-01-2005 11:17

I assume the sprite will turn and face the players right? I want something similiar to this, but one that doesnt turn. I would like to place a sign on the wall or something.

Twilight Suzuka 02-01-2005 11:20

Sprites auto turn. What your wanting is a logo.

KleeneX 02-01-2005 12:50

Ok, first sorry for my mistakes.
I've made some changes:
  1. zip instead rar file
  2. added "get_basedir" function
  3. and removed the word "Plugin:" in the topic name.

sub 02-01-2005 15:43

it is sooooo simple yo do this in ripent though.

KleeneX 02-01-2005 15:44

But I think my plugin is much easier. :D

KleeneX 02-04-2005 11:15

Big update released. :D

Version 2 is out. For more information, read the first post. :)

st341th 02-04-2005 11:19

Nice plugin dude!
Makes life alot easier... especially when u got 25 maps on a server to insert the sprite for..

Johnny got his gun 02-04-2005 11:22

Rastin: Actually sprites never turn. They are always 2D no matter what.

You are likely wanting models. I made such a plugin years ago to put like pictures on walls. Never released it though.

Kleenex:
* Don't use Vexd_Utilities
* return PLUGIN_CONTINUE, not needed in plugin_init()

KleeneX 02-04-2005 11:41

Ok, i'm going to change it.


All times are GMT -4. The time now is 19:17.

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