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

Module: Rage


Post New Thread Reply   
 
Thread Tools Display Modes
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 03-28-2012 , 14:30   Re: Module: Rage
Reply With Quote #81

Hi RAGE, any good news?
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2012 , 16:24   Re: Module: Rage
Reply With Quote #82

Here some stuff from Joaquim : Class Creator.

Quote:
Originally Posted by Joaquim
This is a module that allows you to create new classes for entities based on existent classes. For example, you can create a "weapon_boomerang" based on "weapon_knife" and use it then in other plugins seamlessly without having to rely on an API, just using it straight way. It does support hamsandwich so you can handle new entities with new classnames like you do normally for old classes.

Please note :
- It would have been better to make class_creator as a library but Joaquim doesn't have the time right now.
- Remember that if you can make the weapon with C++ you should because of increased efficiency and less trouble on handle intricate stuff.
- There are room for improvements and we wanted to present this module differently but at the end better to share unpolished stuffs rather than keeping it for us.

2 examples are provided through a :
- Pawn plugin ; basic example which creates just a weapon_boomerang entity based on the deagle and does nothing else.
- Module ; more elaborated example which create a real weapon weapon_hivehand (the same as HL1) based on the ak47. (next post)

With a pawn plugin :

Spoiler


Some explanations :
- The key is the use of CreateNewClass. It allows to create a new entity and can be used everywhere you want, like with give_item native or be hooked with what you want.
- To make a weapon, you have to deal with the HUD. In order to show the sprites of the new weapon and to tell the client you use a new weapon (to be able to select it), you have to deal with WeaponList message. You need to create a new file weapon_boomerang.txt containing your sprites. For more information you can look at the Custom Weapon Hud Sprites + Slot Redirection tutorial (Note: you don't need to hook the command)
- The example above is not really complete, for example, you create a new weapon based on the deagle : if you get your new weapon, you will see your new sprites, but if you drop it and get a real deagle, the hud will be fucked up. It's just a matter to send again a WeaponList message with the original value if you get a deagle and you were using before your new weapon.

It's important to update Rage to the vBeta3 !

- class_creator_BIN.zip : contains handlers/modules/amxx binaries + plugin source.
- class_creator_SRC.zip : contains handlers/modules source code.
Attached Files
File Type: zip class_creator_BIN.zip (209.4 KB, 275 views)
File Type: zip class_creator_SRC.zip (331.5 KB, 224 views)
__________________

Last edited by Arkshine; 04-08-2012 at 17:09.
Arkshine is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-08-2012 , 16:25   Re: Module: Rage
Reply With Quote #83

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.
Attached Files
File Type: zip hornetgun_SRC.zip (162.8 KB, 210 views)
File Type: zip hornetgun_BIN.zip (1.39 MB, 227 views)
__________________

Last edited by Arkshine; 04-09-2012 at 05:20.
Arkshine is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-08-2012 , 22:29   Re: Module: Rage
Reply With Quote #84

Arkshine - Love the idea but everytime i try this my dedicated server freeze's its windows to. Im not sure what could be going on I have installed it just like you said and have updated rage and did a full restart and everything. Would be nice to know if im doing something or could be a mistake on plugin side.
Pastout is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-09-2012 , 00:54   Re: Module: Rage
Reply With Quote #85

1 question, where is rage.inc file? i cannot find it on the archive file.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-09-2012 , 03:36   Re: Module: Rage
Reply With Quote #86

@Pastout : Download again the zip, I've updated the module and plugin. It should be fixed now.

@yokomo : Sorry rage_beta3_BIN.zip was not containing all it should ; it's fixed now.


For people who has downloading/installing rage_beta3_BIN.zip for the first time, please download/install again. Sorry for the inconvenience.
__________________

Last edited by Arkshine; 04-09-2012 at 05:49.
Arkshine is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-09-2012 , 05:24   Re: Module: Rage
Reply With Quote #87

Haha kinda funny using hornet gun in cs, but sadly it crashed hlds when im using fun native "strip_user_weapons".
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-09-2012 , 05:50   Re: Module: Rage
Reply With Quote #88

Just tried and it doesn't crash for me. I've used a command which throw the native.
Try again to download the package, I've updated the dll and amxx, not sure you're using the latest version.
__________________

Last edited by Arkshine; 04-09-2012 at 05:50.
Arkshine is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 04-09-2012 , 08:23   Re: Module: Rage
Reply With Quote #89

Quote:
Originally Posted by Arkshine View Post
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.
oh my God this small plugin adds fully working Hornet Gun or what?
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 04-09-2012 , 08:35   Re: Module: Rage
Reply With Quote #90

Arkshine - Works perfect great job.
Pastout 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 17:43.


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