Syntax: Select all
from events import Event
from entities.entity import Entity
from players.entity import Player
from players.helpers import index_from_userid
from messages import SayText2
from mathlib import Vector
from filters.entities import EntityIter
from engines.precache import Model
def load():
SayText2('Debug loaded!').send()
def unload():
SayText2('Debug unloaded!').send()
@Event('player_say')
def chat_based_trigger(game_event):
userid = game_event['userid']
index = index_from_userid(userid)
player = Player(index)
test = Entity.create('hegrenade_projectile')
test.origin = player.view_coordinates
test.spawn()
test.detonate()
In CS:GO the server crashes as soon as I am trying to detonate the grenade. This is the message the serverconcole outputs:
Code: Select all
(Counter-Terrorist) test123 @ CTSpawn: blabla
PreMinidumpCallback: updating dump comment
crash_20180130145243_1.dmp[27365]: Uploading dump (out-of-process)
/tmp/dumps/crash_20180130145243_1.dmp
crash_20180130145243_1.dmp[27365]: Finished uploading minidump (out-of-process): success = no
crash_20180130145243_1.dmp[27365]: error: libcurl.so: cannot open shared object file: No such file or directory
crash_20180130145243_1.dmp[27365]: file ''/tmp/dumps/crash_20180130145243_1.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''
Segmentation fault (core dumped)
I also tried adding -debug on the ./srcds but that only gave me:
Code: Select all
----------------------------------------------
CRASH: Di 30. Jan 15:05:29 CET 2018
Start Line: ./srcds_linux -console -game csgo +map de_dust2 -maxplayers 16 -debug
End of Source crash report
----------------------------------------------
Do I have to detonate grenades in a different way in CS:GO ?