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

Apply SetEntityModel() for Zombies?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 04-18-2015 , 07:51   Apply SetEntityModel() for Zombies?
Reply With Quote #1

Hello, I'm making a script for Nemesis Mode(ported from cs1.6 zp ) for ZR 3.1, Just ask is it possible to apply SetEntityModel for zombies..?? and is there any ZR APIs for changing sounds of zombie
__________________
Learning SourceMod is happy
DSASDFGH is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 04-18-2015 , 08:28   Re: Apply SetEntityModel() for Zombies?
Reply With Quote #2

You can adjust it here:
cstrike/addons/sourcemod/configs/zr/playerclasses.txt
Also you can override the model with this function:
https://sm.alliedmods.net/new-api/sd...SetEntityModel
But zombie reloaded resets the model after round start event, use timer:
PHP Code:
public Action:EventPlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast)
{   
    
CreateTimer(0.1,SetModelGetClientOfUserId(GetEventInt(event,  "userid")));
    return 
Plugin_Continue;
}
public 
Action:SetModel(Handle:timerany:client)
{       
    if (
IsClientInGame(client) && IsPlayerAlive(client) {
        
//set model
    
}
    return 
Plugin_Continue;

Afak, zombie sounds are hardcoded, you can change them in the source files or with sound hooks
https://sm.alliedmods.net/new-api/sdktools_sound

zr API: addons\sourcemod\scripting\zr\api

Last edited by kadet.89; 04-18-2015 at 08:51.
kadet.89 is offline
Send a message via Skype™ to kadet.89
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 18:26.


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