Raised This Month: $ Target: $400
 0% 

Creating entities but my fps go down...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fearAR
Veteran Member
Join Date: Oct 2010
Old 06-15-2011 , 23:57   Creating entities but my fps go down...
Reply With Quote #1

I am making a plugin, where the player can choose appearence.

Well when player spawn, I set them a model but without head, and then I create an entity, It follows Player, and I set it a model like a head, Which has been chosen by Client after respawn, but for this reason my FPS down...
and I was thinking why the Lasermine plugin, makes when a lot of lasermines are in same places, and I saw them, my fps don't go down.

Please help me, Is there anyway where I can create an entity and my fps don't go down?

Because I am working on it for a long time and I cant believe that at last moment...

Thank you for reading it and I post a part of plugin for help if you didn't understand:

PHP Code:
/*Function Ham_Spawn... cabeza[id] is ent's variable, added like a global variable.*/
        
PonerleFollower(cabeza[id], idMOVETYPE_FOLLOW"models/ruso.mdl");
    
cs_set_user_model(id"selva");

//Anyway

stock PonerleFollower(entownermovetypeszModelEnt[]) {
    
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"));
        
    
set_pev(entpev_movetypemovetype);
    
set_pev(entpev_aimentowner);
    
engfunc(EngFunc_SetModelentszModelEnt);
    
set_pev(entpev_ownerowner);    
    
dllfunc(DLLFunc_Spawnent);

One more thing that can help, when I do all of this, the player seems as if breathing fast, but when I dont put any entity that follow player, the player dont breath fast.

Greetings.

Last edited by fearAR; 06-16-2011 at 00:56.
fearAR is offline
Send a message via MSN to fearAR
 



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 23:31.


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