Skip to content

Damage through Objects/Terrain #4

Description

@VonLSV

The first NPC I've made is using an m92 pistol and is able to consistently shoot through the Sewer Branch tanks and through the ground into a cave below. I turned on noclip and the NPC is able to hit no matter what is between us.

I'll continue to test this out and see if I can figure out what is wrong, as I think this was something that was fixed several versions ago. Thanks.

{
"HumanNPCs": [
{
"userid": 1051921870,
"displayName": "[FS]Tanya",
"invulnerability": false,
"health": 100.0,
"respawn": false,
"respawnSeconds": 60.0,
"spawnInfo": {
"position": "-1186.422 31.11008 -531.4908",
"rotation": "-0.006479566 0.9927801 -0.06324304 -0.1017153"
},
"waypoint": null,
"collisionRadius": 32.0,
"spawnkit": "fslvl1",
"damageAmount": 1.0,
"damageDistance": 30.0,
"damageInterval": 0.5,
"attackDistance": 100.0,
"maxDistance": 200.0,
"hostile": true,
"ahostile": true,
"speed": 3.2,
"stopandtalk": true,
"stopandtalkSeconds": 3.0,
"enable": true,
"persistent": true,
"lootable": false,
"hitchance": 0.35,
"reloadDuration": 0.0,
"needsAmmo": false,
"dropWeapon": true,
"defend": false,
"evade": false,
"follow": true,
"followtime": 30.0,
"evdist": 0.0,
"allowsit": false,
"allowride": false,
"band": 0.0,
"message_hello": null,
"message_bye": null,
"message_use": null,
"message_hurt": null,
"message_kill": null,
"protections": {
"Generic": 0.0,
"Hunger": 0.0,
"Thirst": 0.0,
"Cold": 0.0,
"Drowned": 0.0,
"Heat": 0.0,
"Bleeding": 0.0,
"Poison": 0.0,
"Suicide": 0.0,
"Bullet": 0.0,
"Slash": 0.0,
"Blunt": 0.0,
"Fall": 0.0,
"Radiation": 0.0,
"Bite": 0.0,
"Stab": 0.0,
"Explosion": 0.0,
"RadiationExposure": 0.0,
"ColdExposure": 0.0,
"Decay": 0.0,
"ElectricShock": 0.0,
"Arrow": 0.0,
"AntiVehicle": 0.0,
"Collision": 0.0,
"Fun_Water": 0.0
},
"hostileTowardsArmed": false,
"hostileTowardsArmedHard": false,
"raiseAlarm": false,
"message_armed": null,
"message_alarm": null,
"instrument": null
}
],
"HumanNPCTeams": []
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions