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

[HL] Weapon Factory - Weapons And Items Spawner


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Half-Life        Category:   Technical/Development       
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-01-2012 , 10:05   [HL] Weapon Factory - Weapons And Items Spawner
Reply With Quote #1


Weapon Factory - Spawn weapon by your self!
Description:
There is too many strippers and plugins for adding weapons and items to the map, but they worked through a simple configuration files, no user interface in the game. I decided to make a new version of them. Now put the weapons on the map and edit it more easily with new in-game interface. See screens, which shows how to add weapons to the map in the game. Simply call up the menu, select an item that you want to add. Adjust the angle of rotation of an item you like. Move the crosshair to where you want an item will spawn. Click Spawn It. That's it. We added an item to the configuration file and will load the next map. It's very simple.
Commands:
There is only one command:
wp_spawn - shows menu
Notes:
Only admin with ADMIN_CFG flag can add entity to the map
All configuration files are storing to addons/amxmodx/configs/weapon_factory/ folder
Only one admin can use menu at one time
Only Half-Life support
Server must restarted to get all items real
Bugs:
for the normal custome entity editing edit only the first spawned weapon, otherwise, the plugin work is not predictable
Changelog:
0.1 (01.04.2012)
  • First plugin release
  • You can spawn a weapon or item by your self
0.2 (07.04.2012)
  • Ability to move entityes
  • You can now delet entityes
  • Added "Full RESET" option
0.3 (12.04.2012)
  • fixed bug with the system of deleting and moving enities for custome entities
  • fixed "securtiy" exploit - now only admins with ADMIN_CFG flag can edit map
0.4 (26.04.2012)
  • fixed menu overdraw bug [FINALLY]
  • reorganized menu (now exit redirect to start menu)
0.5 (12.05.2012)
  • added precaching for medkit (no longer crash on medkit spawn)



Thanks to KORD_12.7 to helping me with prevent steal weapon during spawning

Screenshot
Attached Files
File Type: sma Get Plugin or Get Source (weapon_framework.sma - 2715 views - 24.0 KB)
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 10-06-2012 at 23:40.
GordonFreeman (RU) is offline
FOUTA
Senior Member
Join Date: Nov 2010
Location: Lebanon
Old 04-01-2012 , 12:39   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #2

nice work, i remember searching for such a plugin a while ago, i can't remember if i actually found one
__________________
www.cstuts.tk
Everything you might for Counter Strike
FOUTA is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 04-01-2012 , 13:40   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #3

GJ GordonFreeman (RU) ! ;)
__________________



pacheco is offline
lucaskpo13
Junior Member
Join Date: Dec 2011
Location: Argentina
Old 04-01-2012 , 19:00   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #4

Nice work! works perfect!
lucaskpo13 is offline
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 04-01-2012 , 21:59   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #5

Well, I don't play Half-Life, but this plugin smell good, GJ!
bazhenov93 is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 04-05-2012 , 10:15   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #6

Nice, also consider:

PHP Code:
public start_edit(id){
    if(
idedit){
        
        new 
name[32]
        
get_user_name(idedit,name,31)
            
        
set_hudmessage(2551270, -1.00.6006.05.0)
        
show_hudmessage(id"Currently editor is %s^nMore is not allowed",name)
            
        return
        
    }
    
    
idedit=id
    start_menu
(id)
    
    return

PHP Code:
public start_edit(id){
    if(
idedit){
        if(
idedit!=id){
            new 
name[32]
            
get_user_name(idedit,name,31)
            
            
set_hudmessage(2551270, -1.00.6006.05.0)
            
show_hudmessage(id"Currently editor is %s^nMore is not allowed",name)
            
            return
        }
    }
    
    
idedit=id
    start_menu
(id)
    
    return
}

public 
client_disconnect(id){
    if(
idedit==id)
        
idedit=0;

or something, cus now if I am in the weapon menu, and I got an other menu up (like votemap) I can't bring back the weapon menu, even if i rejoin the server.
__________________
- blupi blupi

Last edited by ujjl; 04-05-2012 at 10:22.
ujjl is offline
ServO
Senior Member
Join Date: Nov 2009
Location: Are you asking me out?
Old 04-06-2012 , 05:28   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #7

Looks cool!
__________________
Zombie Dominance

To Do:
- Learn AMXx Script...
ServO is offline
Old 04-06-2012, 11:12
Xalus
This message has been deleted by Xalus.
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-07-2012 , 07:00   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #8

Update
__________________
The functional way is the right way
GordonFreeman (RU) is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 04-07-2012 , 14:12   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #9

- Many times entities are spawned too close to the ground, so they fell out of map. Maybe add a little to theire z coordinate when saving?

- There is a little typo at gluon gun, it says glueon gun.

- placing/editing player spawns, lights and monsters on the map woud be really useful too.

- setting godmode on the currently editing player woud be nice too, so the players dont kill him while he is doing some management

- The traceline which get your aim position shoud ignore players, so you don't have to wait until the players leave the area to place a new entity.

- Maybe ignore weaponboxes and players when you try to select the entity wich you want to edit. Now I can delete a player? from the game

Keep up the good work ;)
__________________
- blupi blupi

Last edited by ujjl; 04-07-2012 at 14:26.
ujjl is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-12-2012 , 08:48   Re: Weapon Factory - Weapons And Items Spawner
Reply With Quote #10

Update. I added z orign.
I doesnt know how to hook aimning to spawn. my kboard is broken. i used virtual kboard for editing 0.3 version
__________________
The functional way is the right way
GordonFreeman (RU) is offline
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 13:07.


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