AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Module: Rage (https://forums.alliedmods.net/showthread.php?t=179706)

joropito 04-19-2012 08:27

Re: Module: Rage
 
Quote:

Originally Posted by kiki33hun (Post 1692263)
I need c++ converter, please link!

There's some C++ to ASCII online converters, search on the web :crab:

kiki33hun 04-19-2012 08:30

Re: Module: Rage
 
Editors should be:D

Bos93 05-18-2012 11:27

Re: Module: Rage
 
Help

Code:

L 05/18/2012 - 19:24:33: [HAMSANDWICH] Failed to retrieve classtype for "weapon_
boomerang", hook for "OnSpawnBoomerang" not active.
L 05/18/2012 - 19:24:33: [AMXX] Displaying debug trace (plugin "class_creator_ex
ample.amxx")
L 05/18/2012 - 19:24:33: [AMXX] Run time error 10: native error (native "Registe
rHam")
L 05/18/2012 - 19:24:33: [AMXX]    [0] class_creator_example.sma::plugin_precach
e (line 15)


Sp@jk 05-20-2012 15:56

Re: Module: Rage
 
Quote:

Originally Posted by Arkshine (Post 1684771)
Here the module example.

Please note :
- class_creator is integrated inside the module. It creates the entity "weapon_hivehand".
- I have a lot of trouble to get this working under linux without crash, while under windows it works like a charm. Please consider a release windows-only for now.
- Don't ask me to customize the weapon, it's just an example.
- This example may lead to an global API to make weapons later, like WeaponMod, but the core as module, weapons as sub-modules, and pawn plugins to customize things.
- The source code is kind of messy because of linux.
- The weapon uses a custom v_ model because the HL weapons are designed to right and in-game you will see the weapon at left. So, a new model flipped to left is provided.

Some screenchots : #1, #2, #3

Here the pawn plugin provided to show how it's nice to be able to us directly a new entity name :

Spoiler


As side-note, I've added 2 forwards for fun to control to whom the hornet should track and make damage.
By default, it ignores players of a same team.
Damage by default is on 10. Sorry forgot to add something to control it. :p


To install :
1) Install Rage beta3
2) Unzip & overwrite if ask hornetgun_BIN.zip in your $moddir.
3) Restart
4) In-game, just type the command hive in console or chat.
5) Enjoy.
- hornetgun_BIN.zip : contains handlers/modules/amxx binaries + plugin source.
- hornetgun_SRC.zip : contains handlers/modules source code.

pls arkshine make this work on linux :)

micapat 06-08-2012 10:57

Re: Module: Rage
 
Hello !

I have some entities that I must kill. I have this code for the moment :

PHP Code:

gFuncInfoTargetKilled Rage->get_virtual_function"Killed" )->create_with_class"info_target" );
gFuncBreakableKilled Rage->get_virtual_function"Killed" )->create_with_class"func_breakable" );
gFuncPlayerKilled Rage->get_virtual_function"Killed" )->create_with_class"player" ); 

I think it is possible to have just one pointer no ?

PHP Code:

gFuncEntity Rage->get_virtual_function"Killed" )->create_with_object"CBase_Entity" ); // ? 

Thank you !

Tirant 06-20-2012 06:37

Re: Module: Rage
 
I'm having issues installing rage on my dedicated server. Once I enable rage through modules.ini in amxmodx, my server crashes immediately (no error, just program crash). There wasn't a metamod module included, so I don't think that's the problem. I want to try and get this working so I can take advantage of the colorchat module. I looked at my installation and I don't see any problems, so I might just be installing it incorrectly. Is there some trick I'm missing?

EDIT: I looked at the report, and ColorChat.rm.dll is the cause. I'm using the most current release, so there must be some installation error I've made (I'm not going to go off saying it's one of your faults, since obviously these are tested releases). Thanks for any help.

Arkshine 06-20-2012 07:48

Re: Module: Rage
 
Do you have the latest Rage version ? Just tested to unzip on my PC and starting HLDS, it doesn't crash and all seems to be loaded.

Tirant 06-20-2012 17:35

Re: Module: Rage
 
Quote:

Originally Posted by Arkshine (Post 1732323)
Do you have the latest Rage version ? Just tested to unzip on my PC and starting HLDS, it doesn't crash and all seems to be loaded.

I've just tried running rage and removing ColorChat.rm.dll from the ./amxmodx/modules/ folder and it seems to load just fine, so my version of the ColorChat module must be corrupted.

meTaLiCroSS 06-24-2012 19:20

Re: Module: Rage
 
Quote:

Originally Posted by Arkshine (Post 1662540)
This is an example of a handler + module + plugin using the function CBaseEntity::FireBullets3().

Arkshine, can you make a signature for the function "FireBullets" that as from I know it's for shotguns?

Arkshine 06-24-2012 19:25

Re: Module: Rage
 
I can, but will be for tomorrow.


All times are GMT -4. The time now is 04:12.

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