Turok: Dinosaur Hunter Forums!

Turok Games => Turok 2 Seeds of Evil => Turok 2 Seeds of Evil Modding/Mapping => Topic started by: BehemothProgrammer on June 30, 2017, 06:02:44 PM

Title: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on June 30, 2017, 06:02:44 PM
This mod contains MP addons that can be integrated into your own MP mod. Or if you just want to use it as is then rename the .zip to .kpf and throw it in your mods folder.

Download https://www.dropbox.com/s/wzaphuavodotlnp/BP_MPAddon_1.0.zip?dl=0 (https://www.dropbox.com/s/wzaphuavodotlnp/BP_MPAddon_1.0.zip?dl=0)

Features

How to add to your existing mod
Copy the folders to your mods folders. If your OS asks are you sure you want to overwrite a file then you have conflict and you need to take note of the described core Turok 2 file changes below. The changes to those files are required but you may have changed those files for your own mod. If you don't want to overwrite them you can read below and make the changes I've detailed below yourself for each file conflict.

Changes to core Turok 2 files

Console commands
call help (Shows a list of all available commands)
call showmods (Displays a list of the current servers mod settings)

Host only commands
call grav0 to 100 (Sets gravity. Default value 60)
call speed0 to 100 (Sets player speed. Default value 50)
call dmg0 to 100 (Sets the damage scale that players deal out. Default value 10)
call dmg1000 (Sets the damage scale that players deal out to 1000 aka insta kill)
call dmgshowon (Turns on damage number popups)
call dmgshowoff (Turns off damage number popups)
call def0 to 100 (Sets how much scaled damage players will receive. Default value 10)
call def1000 (Sets how much scaled damage players will receive to 1000 aka 1 hit death)
call jumpon (Turns on Double Jump ability)
call jumpoff (Turns off Double Jump ability)
call dashon (Turns on Ground Dash ability)
call dashoff (Turns off Ground Dash ability)
call airdashon (Turns on Air Dash ability)
call airdashoff (Turns off Air Dash ability)
call slamon (Turns on Ground Slam ability)
call slamoff (Turns off Ground Slam ability)
call cloakon (Turns on players cloaking)
call cloakoff (Turns off players cloaking)
call slap0 to 15 (Slaps a player with id. Type playeridx in console to find the player id to slap)

Example:
call grav52
will set gravity for players to 0.52
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: postal on June 30, 2017, 06:14:18 PM
This is some super handy stuff right here, great job man
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: vis on July 01, 2017, 06:16:50 AM
Keep good job, behemoth! Tnx for all!
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 01, 2017, 01:41:07 PM
Oh my god you actually added slapping lol. You're a hero for Turok 2 modding. Looks like one of those essential half life server addons
I really wanted some of these commands in dodgeball so thanks for releasing it. Now I can finally add fast switch for the grenade launcher
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 01, 2017, 06:47:00 PM
Thanks I hope it helps. I should also say for those that have already edited scripts (if you haven't then don't worry about what I'm about to say) - that the scripts/weapons.txt file is no longer used and weapon scripts are now put into there own separate files in the scripts/BP/Weapons folder. And the base weapon script is ScriptWeapon.cpp

I did the same thing for scripts/missileController.txt. All the controllers are in scripts/Actors/Controllers

Enemies are in scripts/BP/Actors/AI (Base class is AI.cpp)

Player script is located at scripts/BP/Actors/Player.cpp

And the base class for all actors(Player,AI,Controllers,Maps) is scripts/BP/Actors/ScriptActor.cpp

The default settings for the mods are located at the top of the file in scripts/BP/Actors/Player.cpp

If you need any help let me know with that.


Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Duke64 on July 02, 2017, 01:49:05 AM
Nice handy work xD hey glad you are around working with Turok mate. This is really skilled stuff gj it has lots of interesting tweaks here. Added this on Turok Sanctum.

https://turoksanctum.com/behemothprogrammers-mp-addons-v1-0/
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Dinomite on July 02, 2017, 07:47:35 AM
(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTvTio7egrCzaR-5HUoxSaCPGxuKCKOr88nOgwSL6Y7PedCsbqv)
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Jay Doomed on July 06, 2017, 11:29:36 AM
This is really nice stuff man. Good work that was crazy floating with gravity. And you already know I like that ground slam 8)
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Dinomite on July 06, 2017, 12:05:09 PM
slam jam
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 13, 2017, 01:45:25 AM
I'm getting a weird bug where sometimes the enemy projectiles in raptorfest don't do any damage to players, they just pass through. I tried all sorts of things to fix it, I eventually did when I put the BP scriptcomponents in my enemies def file, but last time we played I noticed they weren't doing damage.

I just tried fixing that again, first by putting your mod into my mod and overwriting everything. That didn't fix it, so I tried just your mod with my mod's projectiles which ended up working. The weird thing is the original version of my mod, which wasn't working before, works now after loading it again. So after all that, the only thing that changed was me loading another mod and restarting steam, I'm not even sure if it's a problem with your mod at this point but I thought I'd let you know anyway.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Dinomite on July 13, 2017, 04:55:17 AM
Probably a sync issue
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 13, 2017, 12:41:40 PM
I have bNetLatched on those particles to make sure they won't desync. That was also from testing on my own server, just starting up raptor fest with the purlinn gunner as the first spawn
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 15, 2017, 01:58:19 PM
I don't think it has anything to do with my mod. I didn't do anything with enemy particles. If it's a network thing, try starting a local game (which is offline) and see if the enemies hit you or not. I don't know what I could suggest that might be the problem.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 21, 2017, 03:20:51 PM
Yeah it only happened online, and apparently only for me. So I think it just affects hosts
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 21, 2017, 04:42:06 PM
I just tested it with the purlin gunner and he hits me fine. It must be something in combination with your mod. If you can send me it I can maybe see if I can help you fix it.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 21, 2017, 06:52:18 PM
I just tested it myself and it works again, it really seems random. I uploaded the kpf with the gunner as the first spawn in raptor fest if you want to try it out anyway, I doubt it's a problem with your mod though
https://www.dropbox.com/s/9n5uro89eu0ozkg/dodgeballraptorfest.kpf?dl=0

Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 21, 2017, 07:45:05 PM
Yeah it's your mods skinnedmeshs. The problem is you didn't enable interaction with the bones. In Fireseed if you click on the bone number and turn Flags 0 on then that means that bone is hittable. So you need to do that with the meshs you made.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: ilgm on July 21, 2017, 08:23:48 PM
Oooh so it was the playermodels I had. Thanks for the help, fixed now
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Victorious_Games on July 14, 2018, 04:47:50 PM
Does this kind of particle spawn statement:
Code: [Select]
BP::Spawn::.Particle(BP_Particle_Groundpound, @self, self.Origin() + kVec3(0.0f, 0.0f, 20.0f)); not work for weapon scripts? I've been trying everything to get this to work with weapons.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Victorious_Games on July 19, 2018, 08:53:50 PM
Hey man how come the Damage Type for Nukes which is Event Type 33 causes explosive damage event  type 17 instead? Did you disable this somehow? Can it be fixed?
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Dinomite on July 20, 2018, 08:00:43 AM
 :ninja:
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 21, 2018, 07:11:26 PM
Does this kind of particle spawn statement:
Code: [Select]
BP::Spawn::.Particle(BP_Particle_Groundpound, @self, self.Origin() + kVec3(0.0f, 0.0f, 20.0f)); not work for weapon scripts? I've been trying everything to get this to work with weapons.
You have a period before .Particle

Hey man how come the Damage Type for Nukes which is Event Type 33 causes explosive damage event  type 17 instead? Did you disable this somehow? Can it be fixed?
I don't know. I'll have to look into that sometime.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Victorious_Games on July 21, 2018, 07:38:16 PM
Yeah even after removing that dot I still got errors for some reason. I went about getting what I wanted another way. It's all good.

Please check into that NUKE event type 33. Something changed after I started using your script set up as a base. I really don't know why it happened either.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: BehemothProgrammer on July 24, 2018, 11:46:20 AM
Seems it doesn't do the Nuke effect on enemies if they have a ScriptComponent attached to them.
Title: Re: BehemothProgrammer's MP addons v1.0
Post by: Victorious_Games on July 24, 2018, 11:58:48 AM
Oh ok. Thanks for looking into that. I guess I'll have to do without. I only wanted that event type for the new alternate fire attack for the Sunfire Pods. I'm not gonna sacrifice the ability to spawn more enemies via script or the new damage and death skins I'll be adding for that one weapon. They can just blow up for all I care.