Making a rope from .cfg (help)

Hi, i’m trying to create a rope, it’s not spawning when I execute the command, can anyone help?

heres the code:

ent_create move_rope
ent_fire move_rope addoutput “classname rope_top”
ent_fire rope_top setparent !activator
ent_fire rope_top setparentattachment anim_attachment_rh
ent_fire rope_top addoutput “type 0”
ent_fire rope_top addoutput “slack 100”
ent_fire rope_top addoutput “RopeMaterial cable/rope.vmt”
ent_fire rope_top addoutput “movespeed 64”
ent_fire rope_top addoutput “subdiv 2”
ent_fire rope_top addoutput “Dangling 10”
ent_fire rope_top addoutput “breakable 0”
ent_fire rope_top addoutput “PositionInterpolator 2”
ent_fire rope_top addoutput “width 2”
ent_fire rope_top addoutput “texturescale 1”
ent_fire rope_top setparentattachment anim_attachment_rh
ent_fire rope_top addoutput “nextKey rope_texture”
ent_fire rope_top addoutput “logic_measure_movement 1”
ent_create keyframe_rope
ent_fire rope_texture addoutput “classname rope_texture”
ent_fire rope_texture addoutput “movespeed 20”
ent_fire rope_texture addoutput "modelindex 138
ent_fire rope_texture addoutput “subdiv 5”
ent_fire rope_texture addoutput “barbed 50”
ent_fire rope_texture addoutput “width 4”
ent_fire rope_texture addoutput “collide 1”
ent_fire rope_texture addoutput “breakable 1”
ent_fire rope_texture addoutput “rendercolor 255 0 0”
ent_fire rope_texture addoutput “renderamt 255”
ent_fire rope_texture addoutput “slack 10”
ent_fire rope_texture addoutput “type 1”
ent_fire rope_texture addoutput “Dangling 0”
ent_fire rope_texture addoutput “texturescale 1”
ent_fire rope_texture addoutput “RopeMaterial cable/rope.vmt”
ent_fire rope_texture setparent !activator
ent_fire rope_texture setparentattachment anim_attachment_rh
ent_fire rope_top addoutput “nextKey rope_texture”

anyone?

I use to do this in HL2DM, before I started gmod. Valve blocked “ent_fire” because it was “a developer function” and they didn’t want it used. so it may not be working because “ent_fire” may be blocked.

[editline]27th June 2013[/editline]

also why not do it with lua?

Because I don’t know lua, but thanks for the advice i’ll try to learn how to make it in lua.