So I seen a map floating around with phd, it was legacy city I think. Well any way I want to add phd to my map, I have the model and shader done but for the life of me I cant not take explosive damage. I could care less about the exploding flop unless we could incorporate sliding into it. So if some one could provide the script or point me in the right direction for a noob at scripting that would be great!
I personally don't think this would work because of the changes from bo2 to bo3 but I may be wrong... Double Post Merge: December 11, 2016, 06:53:55 amThis is my current code which was shown to me but when I get flopper than take any form of damage it tells me connection interrupted even in local solo...
Code Snippet
Plaintext
function checkCustomPerk() { level.overridePlayerDamage = &player_damage_override; }
"specialty_phd" is not a perk recognised by the bo3 engine. Use what the previous guy said of "specialty_detectexplosive" as the game will recognise it
"specialty_phd" is not a perk recognised by the bo3 engine. Use what the previous guy said of "specialty_detectexplosive" as the game will recognise it
I used the custom perk tutorial and I thought this is what you would do, natesmith the guy who scripted bananas colada told me this is what it would look like... I guess I could try it though...
EDIT I'm still getting the same error as before when I take explosive damage... Connection interrupted...
EDIT 2 If I replace the whole thing from the script from the first reply I don't get connection interrupted but I do take explosive damage...
Last Edit: December 11, 2016, 08:09:12 pm by OptomusPrime22
This is my perk script for phd, it prevents explosive damage since thats all I really cared to do for now. The shader doesnt show but have not focused on fixing that however you can spawn a hud elem for now or try to figure it out. In the gsh file you can change the perk machine model and the cost if you want to edit either of those as well. However just download the file and then open it and place the files in the rar file in BO3 Root/usermaps/mapname/scripts/pro_custom you will have to create the pro_custom folder. Then open mapname.gsc and mapname.csc and put this line somewhere at the top
This is my perk script for phd, it prevents explosive damage since thats all I really cared to do for now. The shader doesnt show but have not focused on fixing that however you can spawn a hud elem for now or try to figure it out. In the gsh file you can change the perk machine model and the cost if you want to edit either of those as well. However just download the file and then open it and place the files in the rar file in BO3 Root/usermaps/mapname/scripts/pro_custom you will have to create the pro_custom folder. Then open mapname.gsc and mapname.csc and put this line somewhere at the top
I keep getting this error once I have everything set up, I tried tinkering with it but i couldn't find why it wasn't initialized but its probably pretty obvious and I am bad at it
oops sorry bout that i fixed it and i dont know how to delete my post sooooo. Anyways I don't know how to get the script to go with my phd model, I have the script_struct and the model its using with the target name as zm_perk_machine and everything else fine. But when I go in game the model resets to speed cola even though i changed the gsh file to match the correct model, and finally when I try to buy the perk it says power must be turned on even when power is on, I can buy other perks but not that. thanks
oops sorry bout that i fixed it and i dont know how to delete my post sooooo. Anyways I don't know how to get the script to go with my phd model, I have the script_struct and the model its using with the target name as zm_perk_machine and everything else fine. But when I go in game the model resets to speed cola even though i changed the gsh file to match the correct model, and finally when I try to buy the perk it says power must be turned on even when power is on, I can buy other perks but not that. thanks
Meant to get to this earlier but got distracted with other things but if you havent got it working just download this prefab
This is my perk script for phd, it prevents explosive damage since thats all I really cared to do for now. The shader doesnt show but have not focused on fixing that however you can spawn a hud elem for now or try to figure it out. In the gsh file you can change the perk machine model and the cost if you want to edit either of those as well. However just download the file and then open it and place the files in the rar file in BO3 Root/usermaps/mapname/scripts/pro_custom you will have to create the pro_custom folder. Then open mapname.gsc and mapname.csc and put this line somewhere at the top
This is my perk script for phd, it prevents explosive damage since thats all I really cared to do for now. The shader doesnt show but have not focused on fixing that however you can spawn a hud elem for now or try to figure it out. In the gsh file you can change the perk machine model and the cost if you want to edit either of those as well. However just download the file and then open it and place the files in the rar file in BO3 Root/usermaps/mapname/scripts/pro_custom you will have to create the pro_custom folder. Then open mapname.gsc and mapname.csc and put this line somewhere at the top