1
Bloodlines Modding / Re: Modding Questions
« Last post by tarulu on Today at 04:35:22 am »Quote
It goes to "item_type" "weapon_firearm".That doesn't work, it hides the weapon but you can still attack with it.
-------------------------------------------------------------------------------------------------------------
After some hours playing around i made some progress, but i ran into a big problem now and i am not sure what is causing it. i use Give command to give myself claws and weapons, if i give myself claws i can use it but if i give myself another weapon,equip and then i try to use claws that doesn't work. meaning if i change my weapon from claws to any weapon then i can't come back to it.however i can change to any other weapon from other weapons just fine.
I think this happened when i actually was trying to run console commands from a script that was provided in mod guide(i was trying to allow my Pc to use(using "use command") the claws from python file). at the same time i added a timer to map using text editor. i removed both but problem still exists, maybe because my map changes using map command or something similar. using it on other maps also didn't solve the problem, i have also noticed that suddenly i got a lot of errors in console.even from vamputil which i am not using(for example gives a error about getpos() function or unhideplus and etc).
note:since i can't solve the problem i am beginning to think if this problem was there from the first place, and i just didn't notice it? i am not sure because maybe i didn't try to revert back to claws after giving myself a weapon.
So i can't test anything further because of this, but perhaps someone can do some tests, if this claw problem is only on my part, maybe carrying bodies can actually work(presuming we can use,"use" command from console)
For testing, if anyone has the time:I have added these to my sm_pawnshop_1(also attached the file):
Code: [Select]
{
"classname" "logic_timer"
"StartDisabled" "0"
"UseRandomTime" "0"
"RefireTime" "1.0"
"OnTimer" ",,,0,-1,Carry.Drops(),"
"origin" "-1750.000 -2420 145"
}
{
"classname" "prop_ragdoll"
"model" "models/character/npc/unique/Downtown/Headless_Corpse/headless_corpse.mdl"
"targetname" "victim"
"StartHidden" "0"
"demo_sequence" "None"
"skin" "0"
"disableshadows" "1"
"npc_transparent" "1"
"spawnflags" "32"
"crossfade_skin_time" "2.0"
"physdamagescale" "1"
"angles" "0 0 0"
"origin" "-1780.000 -2520 145"
}
{
"classname" "phys_constraint"
"targetname" "victim_constraint"
"attach1" "victim"
"forcelimit" "0"
"torquelimit" "0"
"spawnflags" "0"
"StartHidden" "0"
"origin" "-1770.000 -2520 145"
}
To autoexec.cfg:
Code: [Select]
alias foo "import Carry"
alias doo "Carry.Carrys()"
And to config.cfgCode: [Select]
bind "g" "doo"
In game console first use "foo" then g button should work.If you pickup the body and you are not using "item_w_claws_protean5" then body should be released.
note:This might only work with a nossi, that was my test pc with no fists.
My game broke when I was testing this, and trying to force player to use "item_w_claws_protean5" when the body is picked up.
I apologize for horrible coding, bad var names and values that don't do anything yet.This was only my second script in bloodlines, so bare with me.