This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Module: Orpheu (v2.6.3)


Post New Thread Reply   
 
Thread Tools Display Modes
xlenonz
Member
Join Date: Jun 2007
Old 02-15-2011 , 06:28   Re: Module: Orpheu2.3a
Reply With Quote #691

file type .ini
and
if player try download file do nothing that player.
if player already have that file , doesnt try to download file kick that player

is that clear now
__________________
HELL YEAH
xlenonz is offline
diavolar
BANNED
Join Date: Nov 2009
Location: Usa
Old 02-16-2011 , 09:12   Re: Module: Orpheu2.3a
Reply With Quote #692

how to increase the number of slots +32 40/50 real players
i want to play 40/50 playes in cs1.6 is possible ?
i use os linux

sorry for my english

Last edited by diavolar; 02-16-2011 at 09:15.
diavolar is offline
Send a message via ICQ to diavolar Send a message via AIM to diavolar Send a message via Yahoo to diavolar Send a message via Skype™ to diavolar
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-16-2011 , 22:50   Re: Module: Orpheu2.3a
Reply With Quote #693

Quote:
Originally Posted by diavolar View Post
how to increase the number of slots +32 40/50 real players
i want to play 40/50 playes in cs1.6 is possible ?
i use os linux

sorry for my english
No.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-02-2011 , 13:02   Re: Module: Orpheu2.3a
Reply With Quote #694

How could I call PM_PlaySound?
lazarev is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-02-2011 , 13:04   Re: Module: Orpheu2.3a
Reply With Quote #695

Quote:
Originally Posted by lazarev View Post
How could I call PM_PlaySound?
I can show you an example but there is a problem. If you don't fix the hook at the right time you will crash the server, PM_PlaySound is a very unstable function. You should better use SpawnStaticSound.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-03-2011 , 02:40   Re: Module: Orpheu2.3a
Reply With Quote #696

Quote:
Originally Posted by ot_207 View Post
I can show you an example but there is a problem. If you don't fix the hook at the right time you will crash the server, PM_PlaySound is a very unstable function.
then I will keep using emit_sound
lazarev is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-03-2011 , 02:41   Re: Module: Orpheu2.3a
Reply With Quote #697

Quote:
Originally Posted by ot_207 View Post
I can show you an example but there is a problem. If you don't fix the hook at the right time you will crash the server, PM_PlaySound is a very unstable function. You should better use SpawnStaticSound.
What you mean ?

It seems that there is no problem with it, i use it this way (i think arkshine gave me the way, or joaquim put the code somewhere on the forum) :
PHP Code:
    new OrpheuFunction:PM_Move OrpheuGetDLLFunction("pfnPM_Move","PM_Move")
    
OrpheuRegisterHook(PM_Move,"OnPM_Move")
    
OrpheuRegisterHook(PM_Move,"OnPM_MovePost",OrpheuHookPost)
}

public 
OnPM_Move(OrpheuStruct:pmove,server)
{
    
ppmove pmove

    
// Retrieves the address of the function to hook
    
new PM_PlaySoundAddress OrpheuGetParamStructMember(1,"PM_PlaySound")
    
    
// Creates the function in the module 
    
new OrpheuFunction:PM_PlaySound OrpheuCreateFunction(PM_PlaySoundAddress"PM_PlaySound")
    
    
// Hooks it
    
PM_PlaySoundHook OrpheuRegisterHook(PM_PlaySound"OnPM_PlaySoundHook")
}

public 
OnPM_MovePost(ppmove,server)
{
    
OrpheuUnregisterHook(PM_PlaySoundHook)
}

public 
OrpheuHookReturn:OnPM_PlaySoundHook(iChannelszSample[], Float:flVolumeFloat:flAttenuationiFlagsiPitch)

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 03-03-2011 , 03:32   Re: Module: Orpheu2.3a
Reply With Quote #698

Yes I am afraid there is.

PM_MOVE is called too damn often and if you register than unregister the hook the thing will just use too much cpu.
My server for only 8 players went from 20% CPU usage to 80%.
And if you try to hook it more efficiently you must restore the hook before these functions are reloaded. If not then you will create at the low level assembly code a stack misalignment and the server will crash.
I know this because I have tried working with this in my BW plugin. It sucks but there isn't another way to do it.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 03-12-2011 , 13:14   Re: Module: Orpheu2.3a
Reply With Quote #699

hi, when its possible to hook OrpheuMemorySet("awpCost",1,1000)
so its possible to hook "awpClip" or "awpBPammo" ?
so the engine handle the clip and bp amount and not a "simple pawn" plugin with arrays?
__________________

Working on:
nothing
schmurgel1983 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-12-2011 , 17:06   Re: Module: Orpheu2.3a
Reply With Quote #700

clip and ammo are defined in GetItemInfo in each weapon internal class.
__________________
Arkshine is offline
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 08:19.


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