AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Attack Chickens (https://forums.alliedmods.net/showthread.php?t=55440)

toben 05-21-2007 20:45

Attack Chickens
 
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.

Emp` 05-21-2007 23:02

Re: Attack Chickens
 
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.

toben 06-02-2007 11:24

Re: Attack Chickens
 
code for that?

regalis 06-02-2007 11:35

Re: Attack Chickens
 
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

stupok 06-02-2007 12:06

Re: Attack Chickens
 
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...


All times are GMT -4. The time now is 10:38.

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