AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Creature Mod (VERSION 1.5) (https://forums.alliedmods.net/showthread.php?t=61066)

X-Script 09-19-2007 19:22

Creature Mod (VERSION 1.5)
 
2 Attachment(s)
CREATURE MOD v1.5
(Original Author: MaTTe)

.:Information:.
Creature Mod was originally by MaTTe, he was unable to maintain his plugin and requested for it too be Unapproved by himself. I've decided to step-up and do the rebirth of Creature Mod. This plugin basically adds relastic gameplay with creatures to the mod of Counter-Strike. You can open up a creature menu and choose what creature you'd like too be, all creatures include a price to pay before getting the creature and it's powers attached to your player. You have only four creatures to choose from and all of them have different and special abilities within.

.:CVARs:
cm_spider - Turns the ability to be a spider off. (1)
cm_chicken - Turns the ability to be a chicken off. (1)
cm_lobster - Turns the ability to be a lobster off. (1)
cm_alien - Turns the ability to be a alien off. (1)

cm_spiderhp - Controls max HP for the spider (150)
cm_chickenhp - Controls max HP for the chicken (250)
cm_lobsterhp - Controls max HP for the lobster (350)
cm_alienhp - Controls max HP for the alien (450)

cm_spiderap - Controls max AP for the spider (200)
cm_chickenap - Controls max AP for the chicken (400)
cm_lobsterap - Controls max AP for the lobster (600)
cm_alienap - Controls max AP for the alien (800)

cm_spiderspeed - Controls speed for the spider (400)
cm_chickenspeed - Controls speed for the chicken (500)
cm_lobsterspeed - Controls speed for the lobster (600)
cm_alienspeed - Controls speed for the alien (700)

cm_spiderprice - Controls price for the spider (2000)
cm_chickenprice - Controls price for the chicken (
2000)
cm_lobsterprice - Controls price for the lobster (
2000)
cm_alienprice - Controls price for the alien (
2000)

cm_spiderprice2 - Controls price2 for the spider (
2000)
cm_chickenprice2 - Controls price2 for the chicken (
2000)
cm_lobsterprice2 - Controls price2 for the lobster (
2000)
cm_alienprice2 - Controls price3 for the alien (
2000)

.:Commands:.
say creaturemenu - Brings up the Creature Menu
say /creaturemenu - Brings up the Creature Menu
say_team creaturemenu - Brings up the Creature Menu
say_team /creaturemenu - Brings up the Creature Menu

.:Creature Details:.
[Model]Spider: Gives client a deagle 150 HP, 200 AP, 400 SPE.
[Model]Chicken: Gives client a knife 250 HP, 400 AP, 500 SPE.
[Model]
Lobster: Gives client a AWP 350 HP, 600 AP, 600 SPE.
[Model]
Alien: Gives client a M249 450 HP, 800 HP, 700 SPE.

You cannot pick more than one creature at a time if you attempt to the mod will not let you and it will over-write the current creature you have set. At the end of the round all players are set back to normal and are forced to choose new creatures, if you don't have the money too well then you have to go kill someone. You must have the files included in the .zip file all installed into the correct place. Check the "TroubleShooting" section below for help on where to install the files correct. I advise you not to change the models because they fit there character well.

.:Modules:
Cstrike
Core
Fun

.:Credits:.
MaTTE - Original Author
xXAvalancheXx - Small part of code
BlackMilk - Official Beta Tester
Zenith77 - Coding Help
VEN - Tutorial

.:Trouble Shooting/FAQ:.
Q: Can this plugin be used be used in any other mod?
A: No, it only works for Counter-Strike.

Q: When do the creatures reset to normal players?
A: When the player dies, or the round restarts / ended.

Q: Are others aware of what creautre I purchased?
A: Yes, it displays a HUD message with the information.

Q: Are any tributes changed to the weapons we get?
A: No, this mod doesn't change anything with the weapons.

Q: Where do I extract the .zip to make it work?
A: The best place is going to be your desktop.

Q: Where do I install the files in my amxmodx folder?
A:
alien.mdl - cstrike\models
chicken.mdl - cstrike\models
lobster.mdl - cstrike\models
spider.mdl - cstrike\models

creaturemod.cfg - addons\amxmodx\configs
creaturemod.amxx - addons\amxmodx\plugins
creaturemod.sma - addons\amxmodx\scripting
CreatureMod.txt - addons\amxmod\configs

*Questions, Comments, Concerns - Reply to the thread
*Please give optimal requests and help on the code if needed
*Please don't be inpatient, wait before the next update to come


Zenith77 09-19-2007 23:14

Re: Creature Mod(Rebirth)
 
Please explain to me, how you plan to maintain this mod? You stated yourself you couldn't maintain TFC gravity, why would a more complex plugin be an exception?

X-Script 09-19-2007 23:16

Re: Creature Mod(Rebirth)
 
I've made some plans out I get a break of of college and work for three weeks and two days, and I plan on taking that time to finish my homework(one day) and then the rest (Three Weeks and One Day) to do this stuff, and just chill out. After the three weeks are up i'll still have almost two months were I can sign on everyday for atleast an hour. Giving me plenty of time to do updates, requests, fixes, and such. After two months i'll be limited to about two sign on's per week, at about 25 minutes per sign on.

Zenith77 09-19-2007 23:19

Re: Creature Mod(Rebirth)
 
Quote:

Originally Posted by X-Script (Post 533336)
I've made some plans out I get a break of of college and work for three weeks and two days, and I plan on taking that time to finish my homework(one day) and then the rest (Three Weeks and One Day) to do this stuff, and just chill out.

Sounds good. I just needed to make sure you would actually be able to support this one before further action was taken.

X-Script 09-19-2007 23:20

Re: Creature Mod(Rebirth)
 
Okay, i've edited my post so re-read please.

stylerro 09-20-2007 03:25

Re: Creature Mod(Rebirth)
 
[AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "get_pcvar_num")

Arkshine 09-20-2007 04:50

Re: Creature Mod(Rebirth)
 
Please provide the full error.

Also what's your Amxx version ?

X-Script 09-20-2007 06:50

Re: Creature Mod(Rebirth)
 
Thanks arkshine for helping out, and yes what is your full error?

BlackMilk 09-20-2007 10:32

Re: Creature Mod(Rebirth)
 
I hope this isn't a big thing; I can guess that a lot of players will not want to spend money on a creature every new round, regardless of wether they have or haven't died, can this be put on a cvar?

EDIT: Also, are the parts of the creatures' "inventories" easily editable/customizable?

Guenhwyvar 09-20-2007 15:12

Re: Creature Mod(Rebirth)
 
Sounds interesting!

What is "SPE"?

PS
Please edit the first post and replace relastic/realistic :)

X-Script 09-20-2007 15:54

Re: Creature Mod(Rebirth)
 
@Blackmilk, yes it can, i'll put it in the next release.

@guenhwyvar, SPE is Speed. And okay, i'll edit it.

X-Script 09-20-2007 16:29

Re: Creature Mod(Rebirth)
 
Any confirmination this works 100%?

Also, I'm looking for beta testers for this plugin. PM me for inquires.

X-Script 09-21-2007 08:05

Re: Creature Mod(Rebirth)
 
NEXT UPDATE ADDITIONS:

1. Possibly one or two more creatures.
2. More CVAR's and a client command
3. Lower the cost of the creatures
4. Code Cleanup

I'm not sure when the next update will be but it'll be sometime this weekend or Monday.
Before I release any new version I have it beta tested. My beta tester is BlackMilk, thanks.

-report any bugs / concerns in the thread.
-post any suggestions / requests in the thread.

BlackMilk 09-21-2007 10:30

Re: Creature Mod(Rebirth)
 
Out of curiosity, what's the difference/similarity between the "normal" price and "price2" of the critters?

X-Script 09-21-2007 16:11

Re: Creature Mod(Rebirth)
 
Honestly, i'm really not sure it would be better off not to mess with those settings. Just leave those CVARs as there defaults and only edit the mainprice. I'm taking a "detour" with your suggestion i'll lower all the main prices to only 1000 dollars. You'll still be able to edit the price though.

M249-M4A1 09-21-2007 17:16

Re: Creature Mod(Rebirth)
 
Pretty good stuff goin on here

stylerro 09-21-2007 21:12

Re: Creature Mod(Rebirth)
 
hi, u can help me with this?

L 09/22/2007 - 04:03:45: Invalid CVAR pointer
L 09/22/2007 - 04:03:45: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/22/2007 - 04:03:45: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/22/2007 - 04:03:45: [AMXX] [0] creaturemod.sma::showCreatureMenu (line 118)

description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.76d ini ANY ANY
[ 2] sXe Injected RUN - sxei_mm_i386.so v5.2.4.4 ini ANY ANY
[ 3] STATSME RUN - statsme_mm_i386. v2.8.3 ini Chlvl Chlvl
[ 4] WebMod RUN - w_mm_i386.so v0.48 ini Start Never
[ 5] HLGuard RUN - hlguard_mm_optim v1.8 ini Chlvl Chlvl
[ 6] Fun RUN - fun_amxx_i386.so v1.76 pl1 ANY ANY
[ 7] Engine RUN - engine_amxx_i386 v1.76 pl1 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i3 v1.76d pl1 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i38 v1.76 pl1 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.76c pl1 ANY ANY
10 plugins, 10 running
Currently loaded plugins:
name version author file status
Admin Base 1.76d AMXX Dev Team admin.amxx running
Admin Commands 1.76d AMXX Dev Team admincmd.amxx running
Admin Help 1.76d AMXX Dev Team adminhelp.amxx running
Slots Reservation 1.76d AMXX Dev Team adminslots.amxx running
Multi-Lingual Sys 1.76d AMXX Dev Team multilingual.am running
Menus Front-End 1.76d AMXX Dev Team menufront.amxx running
Commands Menu 1.76d AMXX Dev Team cmdmenu.amxx running
Players Menu 1.76d AMXX Dev Team plmenu.amxx running
Maps Menu 1.76d AMXX Dev Team mapsmenu.amxx running
Admin Chat 1.76d AMXX Dev Team adminchat.amxx running
Scrolling Message 1.76d AMXX Dev Team scrollmsg.amxx running
Info. Messages 1.76d AMXX Dev Team imessage.amxx running
Admin Votes 1.76d AMXX Dev Team adminvote.amxx running
NextMap 1.76d AMXX Dev Team nextmap.amxx running
Nextmap Chooser 1.76d AMXX Dev Team mapchooser.amxx running
TimeLeft 1.76d AMXX Dev Team timeleft.amxx running
Pause Plugins 1.76d AMXX Dev Team pausecfg.amxx running
Stats Configurati 1.76d AMXX Dev Team statscfg.amxx running
CS Misc. Stats 1.76d AMXX Dev Team miscstats.amxx running
Restrict Weapons 1.76d AMXX Dev Team restmenu.amxx running
Creature Mod 1.2 MaTTe creaturemod.amx debug

and i am latest version:

/*
* Creature Mod
* by MaTTe
*
*
*
* Changelog:
*
* v1.4
* -Changed all the cvars to pcvars
*
* v1.3
* -Added forced weapons to the different creatures:
* Deagle for the spider
* Knife for the chicken
* AWP for the lobster and
* M249 for the alien
*
* v1.2
* -Added speed
*
* v1.1
* -Added config file
* -Added menu on spawn
* -Added armor
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "Creature Mod"
#define VERSION "1.2" <<<<<<<<<<<< so is 1.4,but nevernind.
#define AUTHOR "MaTTe"


what is wrong at me?

X-Script 09-21-2007 21:31

Re: Creature Mod(Rebirth)
 
In your plugins.ini file, enable the debug.

like this:

creaturemod.amxx debug

exactly like that.

stylerro 09-21-2007 22:07

Re: Creature Mod(Rebirth)
 
yes, and show me:
L 09/22/2007 - 04:03:45: Invalid CVAR pointer
L 09/22/2007 - 04:03:45: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/22/2007 - 04:03:45: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/22/2007 - 04:03:45: [AMXX] [0] creaturemod.sma::showCreatureMenu (line 118)

Zenith77 09-22-2007 09:12

Re: Creature Mod(Rebirth)
 
To get this approved:
  1. Fix all previously stated errors
  2. http://forums.alliedmods.net/showthread.php?t=42159
    Don't hook spawn with "ResetHud", refer to the link on proper technique.

  3. Code:
    public logevent_round_end(id) {     cs_reset_user_model(id)     set_user_health(id, 100)     set_user_armor(id, 0)     set_user_maxspeed(id, 320.0)     client_print(0, print_chat, "[Creature Mod] All people return to normal...") }
    This works by complete accident. The event is not broadcasted to a single player, but everyone on the server. 'id' is, and will always be, with this function zero. You got lucky here, because passing zero into these natives appear to have the functionality of just looping and executing on all players. I'll check their source to make sure. But you need to fix this, simply loop through all the players (use get_players()).

That is all for now.

X-Script 09-22-2007 09:16

Re: Creature Mod(Rebirth)
 
@stylerro: PM me and we can work this out.

@Zenith, i'll fix his errors for him, and thanks for posting the link.

Alright thank you, i'll be sure to fix this mistake.

M249-M4A1 09-22-2007 10:25

Re: Creature Mod(Rebirth)
 
Add a llama!!

X-Script 09-22-2007 10:26

Re: Creature Mod(Rebirth)
 
If you can find a llama skin for cstrike or czero I will indeed add a llama.

BlackMilk 09-22-2007 12:59

Re: Creature Mod(Rebirth)
 
Goomba? xD

X-Script 09-23-2007 09:48

Re: Creature Mod(Rebirth)
 
Quote:

Originally Posted by stylerro (Post 534092)
hi, u can help me with this?

L 09/22/2007 - 04:03:45: Invalid CVAR pointer
L 09/22/2007 - 04:03:45: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/22/2007 - 04:03:45: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/22/2007 - 04:03:45: [AMXX] [0] creaturemod.sma::showCreatureMenu (line 118)

Are you running the latest version of AMXX? 1.75? Also, did you download the plugin on his thread or my thread?

X-Script 09-23-2007 10:07

Re: Creature Mod (VERSION 1.5)
 
VERSION 1.5 RELEASED

-Fixed Code
-Fixed "Reset Hud"
-Fixed CVAR's
-Fixed Price's
-Fixed unwanted code
-Cod Cleanup

Zenith: I fixed everything you wanted me too fix.



Arkshine 09-23-2007 10:12

Re: Creature Mod (VERSION 1.5)
 
Code:
    for (i=0; i<playerCount; i++)     player = Players[i]         cs_reset_user_model(player)     set_user_health(player, 100)     set_user_armor(player, 0)     set_user_maxspeed(player, 320.0)     client_print(player, print_chat, "[Creature Mod] All people return to normal...")

Shoulde be :

Code:
    for (i=0; i<playerCount; i++)     {         player = Players[i]             cs_reset_user_model(player)         set_user_health(player, 100)         set_user_armor(player, 0)         set_user_maxspeed(player, 320.0)     }         client_print(0, print_chat, "[Creature Mod] All people return to normal...")


Also add the ML system would be great.


Code:
new cfgfile[64] format(cfgfile, 63, "%s/addons/amxmodx/configs/creaturemod.cfg", basedir)

Why did you format with the basedir ? you should use get_configsdir().


Code:
new alive = is_user_alive(id) if(alive==0)

No need to creste a var for that.

Code:
if( !is_user_alive(id) )


Code:
#include <core>

No need to include 'core'.

X-Script 09-23-2007 10:15

Re: Creature Mod (VERSION 1.5)
 
Thanks, fixed it I'll add the fix you just posted when I figure out how to add ML System, never done it before, never tried it before. So might be awhile.

Thank you.

Arkshine 09-23-2007 10:26

Re: Creature Mod (VERSION 1.5)
 
Code:
    spiderprice = register_cvar("cm_spiderprice", "2000")     chickenprice = register_cvar("cm_chickenprice", "2000")     lobsterprice = register_cvar("cm_lobsterprice", "2000")     alienprice = register_cvar("cm_alienprice", "2000")     spiderprice2 = register_cvar ("cm_spiderprice2", "2000")     chickenprice2 = register_cvar("cm_chickenprice2", "2000")     lobsterprice2 = register_cvar("cm_lobsterprice2", "2000")     alienprice2 = register_cvar("cm_alienprice2", "2000")

Can you explain me why you duplicate these cvars ?!!

X-Script 09-23-2007 10:35

Re: Creature Mod (VERSION 1.5)
 
Okay there fixed that too, I was trying something with them and forgot to delete them, sorry.

Now, time to try to figure out how to add ML System.

X-Script 09-23-2007 12:08

Re: Creature Mod (VERSION 1.5)
 
NEXT UPDATED COMING SOON:

The next update with the ML SYSTEM will be added soon, id predict in about an hour when I get some translations.

totopito 09-23-2007 12:13

Re: Creature Mod (VERSION 1.5)
 
but script this is the one i tried and it failed

X-Script 09-23-2007 12:14

Re: Creature Mod (VERSION 1.5)
 
What failed? What are your errors / problems? What do you need help with?

totopito 09-23-2007 12:20

Re: Creature Mod (VERSION 1.5)
 
it said debug the plugin i did that when i type /creaturemenu a popup comes saying sorry for the inconvience send error report dont send and it shuts it down... i even looked in logs here L 09/23/2007 - 11:56:32: Start of error session.
L 09/23/2007 - 11:56:32: Info (map "de_dust_cz") (logfile "error_092307.log")
L 09/23/2007 - 11:56:32: Invalid CVAR pointer
L 09/23/2007 - 11:56:32: [AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "get_pcvar_num") - debug not enabled!
L 09/23/2007 - 11:56:32: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 09/23/2007 - 11:56:42: [CSTRIKE] Player out of range (0)
L 09/23/2007 - 11:56:42: [AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "cs_reset_user_model") - debug not enabled!
L 09/23/2007 - 11:56:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 09/23/2007 - 11:56:43: [CSTRIKE] Player out of range (0)
L 09/23/2007 - 11:56:43: [AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "cs_reset_user_model") - debug not enabled!
L 09/23/2007 - 11:56:43: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 09/23/2007 - 11:56:48: Invalid CVAR pointer
L 09/23/2007 - 11:56:48: [AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "get_pcvar_num") - debug not enabled!
L 09/23/2007 - 11:56:48: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 09/23/2007 - 11:58:43: Invalid CVAR pointer
L 09/23/2007 - 11:58:43: [AMXX] Run time error 10 (plugin "creaturemod.amxx") (native "get_pcvar_num") - debug not enabled!
L 09/23/2007 - 11:58:43: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
L 09/23/2007 - 12:01:27: Start of error session.
L 09/23/2007 - 12:01:27: Info (map "de_nuke") (logfile "error_092307.log")
L 09/23/2007 - 12:01:27: [CSTRIKE] Player out of range (0)
L 09/23/2007 - 12:01:27: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/23/2007 - 12:01:27: [AMXX] Run time error 10: native error (native "cs_reset_user_model")
L 09/23/2007 - 12:01:27: [AMXX] [0] 20377.attach::logevent_round_end (line 294)
L 09/23/2007 - 12:01:27: [CSTRIKE] Player out of range (0)
L 09/23/2007 - 12:01:27: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/23/2007 - 12:01:27: [AMXX] Run time error 10: native error (native "cs_reset_user_model")
L 09/23/2007 - 12:01:27: [AMXX] [0] 20377.attach::logevent_round_end (line 294)
L 09/23/2007 - 12:01:32: Invalid CVAR pointer
L 09/23/2007 - 12:01:32: [AMXX] Displaying debug trace (plugin "creaturemod.amxx")
L 09/23/2007 - 12:01:32: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/23/2007 - 12:01:32: [AMXX] [0] 20377.attach::showCreatureMenu (line 88)

X-Script 09-23-2007 12:22

Re: Creature Mod (VERSION 1.5)
 
Are you running the most recent version of AMXX? 1.75?

If so, post your modules.ini

and your plugins.ini

This error is starting to make me mad, i don't even know what it's supposed to mean.. I'm just trying to go along with everything in the book to fix it.

Zenith77 09-23-2007 13:07

Re: Creature Mod (VERSION 1.5)
 
I'm unapproving this for the following reasons:
  1. Kind of redundant/doesn't do anything new. This just simply changes your health, etc. Nothing special. 50 other plugins do this, just under a different guise.
  2. Code isn't all that great. But I feel it's because you haven't had much experience. Keep practicing and you'll get better :).

X-Script 09-23-2007 14:04

Re: Creature Mod (VERSION 1.5)
 
Okay, fine with me I just thought, i'd bring it back from the dead.

1. yep.

2. I know how to code basic + more it's just I really never changed the code he had, that code is from where he left it. Check out my pluign Connect Info Mod and look at the source, thats how I code because thats all from scratch. There's still plently of things I do need to learn though, I don't like using ";"'s.

totopito 09-23-2007 16:16

Re: Creature Mod (VERSION 1.5)
 
ok here are the modules and plugins ini

stylerro 09-23-2007 16:46

Re: Creature Mod (VERSION 1.5)
 
same problem like totopito :(

totopito 09-23-2007 19:15

Re: Creature Mod (VERSION 1.5)
 
u have dedicated server too?


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

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