Raised This Month: $ Target: $400
 0% 

NPC Maker


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
alexhomie
Member
Join Date: Aug 2008
Old 11-11-2008 , 14:50   NPC Maker
Reply With Quote #1

NPC-MAKER

Description:
This plugin adds an NPC that walks around and shoots you, you can put them in areas you like. There is no maximum amount...That I know of...
Now I know you think this is like ANY other NPC maker, but this one shoots and has HP so you can kill it.


Author: Alex
Version: 1.0
Release Date: 11/11/2008
Tested on:
AMXX 1.8+ (Windows)
Credits: "
Twilight Suzuka" for original code

To DO:
Add HP to NPC
Add AP to NPC
Add Stealth to NPC

Required Models:
Engine

Admin Cvars/Commands:
Sexyartic

Attached Files
File Type: sma Get Plugin or Get Source (npc.sma - 1348 views - 2.1 KB)
File Type: zip requiredz.zip (4.57 MB, 499 views)

Last edited by alexhomie; 11-11-2008 at 15:01.
alexhomie is offline
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 11-11-2008 , 15:01   Re: NPC Maker
Reply With Quote #2

maybe upload the required models?
Bend3R is offline
alexhomie
Member
Join Date: Aug 2008
Old 11-11-2008 , 15:01   Re: NPC Maker
Reply With Quote #3

Yeah just uploaded
alexhomie is offline
Bend3R
Veteran Member
Join Date: Oct 2004
Location: Sweden (Stockholm)
Old 11-11-2008 , 15:19   Re: NPC Maker
Reply With Quote #4

Function "sexyartic" isn't used.
Replace
PHP Code:
register_clcmd("sexyartic""sexyartic"
with:
PHP Code:
register_clcmd("sexyartic""onna"
Bend3R is offline
vato loco [GE-S]
Veteran Member
Join Date: Oct 2006
Location: Germany
Old 12-08-2008 , 13:07   Re: NPC Maker
Reply With Quote #5

your plugin is not working !!!
and the npc's are not walking around and they don't shoot !!!
don't you test it ???

like bender said
it should look
like this to spawn npc!!!
PHP Code:
#include <amxmodx> 
#include <engine> 

public plugin_init() 
{     
    
register_clcmd("say /sexyartic""sexyartic")     
    
register_think("npc_sexyartic","npc_think"); 

public 
plugin_precache()     
{
    
precache_model("models/sexyartic.mdl")     
    
precache_model("models/p_m4alex.mdl"


public 
sexyartic(id
{     

    new 
Float:origin[3]     
    
    
entity_get_vector(id,EV_VEC_origin,origin)     
    new 
ent create_entity("info_target")     
    
give_weapon(ent)     
    
    
entity_set_origin(ent,origin);     
    
origin[2] += 300.0     
    entity_set_origin
(id,origin)     
    
    
entity_set_float(ent,EV_FL_takedamage,1.0)     
    
entity_set_float(ent,EV_FL_health,100.0)     
    
    
entity_set_string(ent,EV_SZ_classname,"npc_sexyartic");     
    
entity_set_model(ent,"models/sexyartic.mdl");     
    
entity_set_int(ent,EV_INT_solid2)     
    
    
entity_set_byte(ent,EV_BYTE_controller1,125);     
    
entity_set_byte(ent,EV_BYTE_controller2,125);   
    
entity_set_byte(ent,EV_BYTE_controller3,125);   
    
entity_set_byte(ent,EV_BYTE_controller4,125);     
    
    new 
Float:maxs[3] = {16.0,16.0,36.0}    
    new 
Float:mins[3] = {-16.0,-16.0,-36.0}    
    
entity_set_size(ent,mins,maxs)    
    
    
entity_set_float(ent,EV_FL_animtime,2.0)    
    
entity_set_float(ent,EV_FL_framerate,1.0)   
    
entity_set_int(ent,EV_INT_sequence,0);   
    
    
entity_set_float(ent,EV_FL_nextthink,halflife_time() + 0.01)  
    
drop_to_floor(ent)     
    return 
1


public 
give_weapon(ent
{         
    new 
entWeapon create_entity("info_target")        
    
    
entity_set_string(entWeaponEV_SZ_classname"npc_weapon")    
    
    
entity_set_int(entWeaponEV_INT_movetypeMOVETYPE_FOLLOW)       
    
entity_set_int(entWeaponEV_INT_solidSOLID_NOT)        
    
entity_set_edict(entWeaponEV_ENT_aimentent)        
    
entity_set_model(entWeapon"models/p_m4alex.mdl"


public 
npc_think(id
{    
    
// Put your think stuff here.   
    
entity_set_float(id,EV_FL_nextthink,halflife_time() + 0.01

__________________

Last edited by vato loco [GE-S]; 12-08-2008 at 13:32.
vato loco [GE-S] is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 12-08-2008 , 17:57   Re: NPC Maker
Reply With Quote #6

wats an npc. wat does it stand for.
letgoofmyeggs is offline
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 12-08-2008 , 20:42   Re: NPC Maker
Reply With Quote #7

Quote:
Originally Posted by letgoofmyeggs View Post
wats an npc. wat does it stand for.
Non-Playable Character.
__________________

Community / No support through PM
danielkza is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 12-09-2008 , 01:04   Re: NPC Maker
Reply With Quote #8

mm ty. so does this plugin work? it sounds interesting
letgoofmyeggs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 12-09-2008 , 12:31   Re: NPC Maker
Reply With Quote #9

The NPC is created but doesn't do anything.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 12-09-2008 , 17:09   Re: NPC Maker
Reply With Quote #10

is this plugin possible to make, sounds like a good idea
letgoofmyeggs 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 02:19.


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