Raised This Month: $ Target: $400
 0% 

Attack Chickens


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toben
Member
Join Date: Sep 2005
Old 05-21-2007 , 20:45   Attack Chickens
Reply With Quote #1

Hello,
I am wondering what I can do change to replace the snark model with the chicken model so that I can send attack chickens onto people. It could use the same code as the snark, but to the person they would be attacked by chickens.
__________________
toben is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-21-2007 , 23:02   Re: Attack Chickens
Reply With Quote #2

I'm guessing your talking about using mosntermod snarks.

All you would really have to do is catch when a model is set (with FakeMeta) and then reassign the entity a new model (chicken).

pretty much as easy as that.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
toben
Member
Join Date: Sep 2005
Old 06-02-2007 , 11:24   Re: Attack Chickens
Reply With Quote #3

code for that?
__________________
toben is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 06-02-2007 , 11:35   Re: Attack Chickens
Reply With Quote #4

What do you think of the idea to post this in Suggestions / Requests forum?
Maybe someone will code that for you ;)
http://forums.alliedmods.net/forumdisplay.php?f=12

greetz regalis
__________________
regalis is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 06-02-2007 , 12:06   Re: Attack Chickens
Reply With Quote #5

Here's my attempt, I don't know if it will work.

Code:
#include <amxmodx> #include <fakemeta> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "stupok69" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_forward(FM_SetModel, "forward_FM_SetModel") } public forward_FM_SetModel(ent, model[]) // I don't know what parameters are sent here. {     if(contain(model, "snark.mdl") != -1)     {         engfunc(EngFunc_SetModel, ent, "chick.mdl")         return FMRES_SUPERCEDE     }     return FMRES_IGNORED }

I'm actually considering starting a new topic to see if anyone can list the parameters for all of the FakeMeta constants. It's really odd that only some of them have a list of parameters...
stupok is offline
Reply


Thread Tools
Display Modes

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 10:38.


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