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

Module: Orpheu (added Monster Mod support)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 10-22-2009 , 03:34   Re: Module: Orpheu
#91

Quote:
Originally Posted by [PUPPETS] Gonzo View Post
This version (166657 bytes) crashes my server instantly on loading. The older (135839 bytes) loads fine.
Ok thanks for the info.
__________________
joaquimandrade is offline
ScHrAnZ DiNgEnS
Senior Member
Join Date: Sep 2007
Old 10-23-2009 , 07:03   Re: Module: Orpheu
#92

Does it work on x64 lenny plattforms?
__________________
ScHrAnZ DiNgEnS is offline
Send a message via ICQ to ScHrAnZ DiNgEnS Send a message via AIM to ScHrAnZ DiNgEnS
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-23-2009 , 07:14   Re: Module: Orpheu
#93

Quote:
Originally Posted by ScHrAnZ DiNgEnS View Post
Does it work on x64 lenny plattforms?
It should
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-24-2009 , 08:04   Re: Module: Orpheu
#94

Auto respawn for kz server (or any maps without objectives).
Not sure about sigs arguments though.
Attached Files
File Type: zip signatures.zip (689 Bytes, 199 views)
File Type: sma Get Plugin or Get Source (kz_respawn.sma - 707 views - 1.2 KB)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-24-2009 , 09:18   Re: Module: Orpheu
#95

I'm trying to hang with this module, my first steps:

motd blocker
PHP Code:
#include < amxmodx >
#include < orpheu >

public plugin_init( ) {
    
register_plugin"Orpheu: MOTD Blocker""1.0""xPaw" );
    
    
OrpheuRegisterHookFromName"CHalfLifeMultiplay::SendMOTDToClient""SendMOTDToClient"OrpheuHookPre );
}

public 
SendMOTDToClient( )
    return 
OrpheuSupercede
Attached Files
File Type: rar CHalfLifeMultiplay_SendMOTDToClient.rar (185 Bytes, 198 views)
__________________
xPaw is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 10-26-2009 , 01:20   Re: Module: Orpheu
#96

Update:

Added support to hooking and calling function from metamod plugins.
In particular, I made it with monstermod in mind.

Read the file "configs/orpheu.ini" for more information.

Also added structures pointers support being "Monster_Event_t *" the only implemented to be used with monstermod.

Example script of using monstermod:
(Also as attachment)

PHP Code:
    #include <amxmodx>
    #include <orpheu>

    #include <engine>
    #include <fakemeta>
    
    #include <xs>

    
enum _:Monster
    
{
        
Grunt,
        
Apache,
        
Barney,
        
BigMomma,
        
Bullsquid,
        
Controller,
        
HAssassin,
        
HeadCrab,
        
HGrunt,
        
Houndeye,
        
ISlave,
        
Scientist,
        
SqueakGrenade,
        
Zombie
    
}

    new 
OrpheuFunction:SpawnMonster

    
new Spawned
    
    
public plugin_init()
    {
        
SpawnMonster OrpheuGetFunction("SpawnMonster")
    
        
OrpheuRegisterHookFromName("CMBaseEntity::CreateEntity","CMBaseEntity_CreateEntity",OrpheuHookPost)
        
OrpheuRegisterHookFromName("CMController::HandleAnimEvent","CMController_HandleAnimEvent");

        
register_clcmd("swap","swap")
        
register_clcmd("createOnAim","createOnAim")
    }

    public 
CMController_HandleAnimEvent(id,animEvent)
    {
        new 
event OrpheuGetStructParam(2,"event");

        
client_print(0,print_console,"Anim event on controller %d [%d]",id,event)
        
server_print("Anim event on controller %d [%d]",id,event)

        
// Makes the controller being always powering up
        
OrpheuSetStructParam(2,"event",4)
    }

    public 
CMBaseEntity_CreateEntity(ptr,class[])
    {
        
Spawned OrpheuGetReturn()
    }

    
// Creates a Controller on the player aiming zone
    
public createOnAim(id)
    {
        new 
Float:origin[3]

        
fm_get_aim_origin_dist(id,origin,400.0)

        
OrpheuCall(SpawnMonster,Controller,origin,0.0,-1)

        
server_print("Created %d",Spawned)
    }
    
// Swap hostages by scientists
    
public swap()
    {
        new 
ent = -1

        
new Float:origin[3],Float:angles[3]
    
        while((
ent find_ent_by_class(ent,"hostage_entity")))
        {
            
pev(ent,pev_origin,origin)
            
pev(ent,pev_angles,angles)

            
remove_entity(ent)

            
OrpheuCall(SpawnMonster,Scientist,origin,angles[1],-1)

            
server_print("Spawned %d",Spawned)
        }    
    }

    
fm_get_aim_origin_dist(indexFloat:origin[3],Float:dist) {
        new 
Float:start[3], Float:view_ofs[3];
        
pev(indexpev_originstart);
        
pev(indexpev_view_ofsview_ofs);
        
xs_vec_add(startview_ofsstart);
    
        new 
Float:dest[3];
        
pev(indexpev_v_angledest);
        
engfunc(EngFunc_MakeVectorsdest);
        
global_get(glb_v_forwarddest);
        
xs_vec_mul_scalar(destdistdest);
        
xs_vec_add(startdestdest);
    
        
engfunc(EngFunc_TraceLinestartdest0index0);
        
get_tr2(0TR_vecEndPosorigin);
    
        return 
1;
    } 
Note: if it doesn't load on your server, tell me your distro and your gcc version. I will try to know how to make it loadable on all systems.

I won't update the first post while I don't make that.
Attached Files
File Type: zip source.zip (167.2 KB, 178 views)
File Type: zip base.zip (49.0 KB, 171 views)
File Type: zip monstermod_functions.txt.zip (20.5 KB, 142 views)
File Type: zip monstermoddump.txt.zip (4.49 MB, 137 views)
File Type: sma Get Plugin or Get Source (monstermod_example.sma - 727 views - 2.2 KB)
File Type: zip signatures.zip (829 Bytes, 147 views)

Last edited by joaquimandrade; 10-26-2009 at 01:26.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-26-2009 , 07:33   Re: Module: Orpheu (added Monster Mod support)
#97

Nice I will try to use it in the Squeak Grenade weapon.

Hope to see more structures.
__________________
Arkshine is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-26-2009 , 10:41   Re: Module: Orpheu (added Monster Mod support)
#98

get this module working along with windows!
i would really like to try out a few things with this but i dont want to install linux just for this...

joachim <3
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 10-26-2009 , 12:29   Re: Module: Orpheu (added Monster Mod support)
#99

Quote:
Originally Posted by SchlumPF* View Post
get this module working along with windows!
i would really like to try out a few things with this but i dont want to install linux just for this...

joachim <3
Even If I did, in Windows each signature of each function needs to be searched manually. That is a tedious process that requires techniques and assembly knowledge. So I suggest you to use linux.

Anyway, I don't plan on making it because I don't have the time.

But, I like you very much german motherfucker. Thanks for posting.
joaquimandrade is offline
SchlumPF*
Veteran Member
Join Date: Mar 2007
Old 10-26-2009 , 17:09   Re: Module: Orpheu (added Monster Mod support)
#100

no problem then but lots of -s for swearing!!!
__________________
SchlumPF* is offline
Send a message via ICQ to SchlumPF*
Closed Thread



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 06:55.


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