AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   zombie.mdl and i get gign (https://forums.alliedmods.net/showthread.php?t=28603)

shino 05-18-2006 16:08

zombie.mdl and i get gign
 
in my plugin, i want bots to be zombies. i get to this:

Code:
public round_start() {     set_task(1.0,"SetBotToZombie") } public plugin_precache(){     precache_model("models/player/zombie/zombie.mdl") } public SetBotToZombie() {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if(!get_cvar_num("amx_zombiebot")) {             return PLUGIN_HANDLED         }         if(is_user_bot(id) && is_user_alive(id)) {             set_user_health(id,get_cvar_num("amx_zombiebot_health"))             set_user_maxspeed(id,get_cvar_num("amx_zombiebot_speed"))             cs_set_user_model(id,"models/player/zombie/zombie.mdl")         }     }     return PLUGIN_CONTINUE }

i then compile the sma file, put the amxx file into plugins... shortly, everything is working as is shoud be.

then i go into the game, i wait a second, and bots reappear as normal, in gign model... after i kill one, it turnes to zombie from zombie.mdl and just stands at the place of kill. so, i have a problem... so, i beg you, if anyone could help me with this, so zombies would appear at first, not when i kill a bot.

:cry:

P34nut 05-18-2006 16:17

Re: zombie.mdl and i get gign
 
Quote:

Originally Posted by shino
cs_set_user_model(id,"models/player/zombie/zombie.mdl")

has to be
Code:
cs_set_user_model(id,"zombie")

Bo0m! 05-18-2006 16:17

Code:
cs_set_user_model(id,"models/player/zombie/zombie.mdl")
:arrow:
Code:
cs_set_user_model(id,"zombie")

Bo0m! 05-18-2006 16:18

Gah, beat me to it by seconds P34nut.

P34nut 05-18-2006 16:19

hehehe

shino 05-24-2006 15:47

what if i use models from DoD?

Code:
public plugin_precache() {     precache_model("models/IIWW/axis-inf.mdl") } public round_start(players[]) {     new players[32],num,i     get_players(players,num)     for(i = 0; i <= num; i++) {         new id = players[i]         if (is_user_alive(id)) {             cs_set_user_model(id,"axis-inf")         }     } }

it turns to damn gign again :D

Hawk552 05-24-2006 15:49

It has to be in models/players in order to work properly.

SweatyBanana 05-24-2006 15:50

Put it and precache it in this dir..

models/player/axis-inf.mdl


Then precache it the same as the other 1.

SweatyBanana 05-24-2006 15:51

Gah...beat me 2 it...


I was typing it all out :(

Hawk552 05-24-2006 15:57

Quote:

Originally Posted by SweatyBanana
Gah...beat me 2 it...


I was typing it all out :(

You can always delete your post next time. If you're the last one to post, you can hit the X next to edit and quote.


All times are GMT -4. The time now is 16:26.

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